You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see the config in another issue, and i have a try, but..
Hi @hpichlerbio, thanks for your interest. One way to finetune on your custom image only dataset is to follow the last section in the training README but remove the video dataset from the mix. The config would look something like this (removing the video dataset from the mix):
data:
train:
_target_: training.dataset.sam2_datasets.TorchTrainMixedDataset phases_per_epoch: ${phases_per_epoch} # Chunks a single epoch into smaller phasesbatch_sizes: # List of batch sizes corresponding to each dataset
- ${bs1} # Batch size of dataset 1datasets:
# Custom Image dataset
- _target_: training.dataset.vos_dataset.VOSDatasettraining: truevideo_dataset:
_target_: training.dataset.vos_raw_dataset.CustomImageDataset # Your custom Dataset classimg_folder: ${path_to_img_folder}gt_folder: ${path_to_gt_folder}file_list_txt: ${path_to_train_filelist} # Optionalsampler:
_target_: training.dataset.vos_sampler.RandomUniformSamplernum_frames: 1max_num_objects: ${max_num_objects_per_image}transforms: ${image_transforms}shuffle: Truenum_workers: ${num_train_workers}pin_memory: Truedrop_last: Truecollate_fn:
_target_: training.utils.data_utils.collate_fn_partial_: truedict_key: all
Note that if you'd like to use your custom dataset, you should implement your own dataset class (similar to SA1BRawDataset). If your dataset is in SA1B format, you can directly use SA1BRawDataset. Please let me know if you have further questions
I write like this, the program will output an error, i think you miss the multiplier, after i fix the bug, i run the program on SA-1B, the program will always out a warnning, like this:
INFO 2024-11-02 19:49:22,049 train_utils.py: 271: Train Epoch: [0][ 100/2796] | Batch Time: 0.91 (1.31) | Data Time: 0.00 (0.44) | Mem (GB): 52.00 (52.77/54.00) | Time Elapsed: 00d 00h 02m | Losses/train_all_loss: 5.03e-01 (7.52e-01)
WARNING:root:Skip RandomAffine for zero-area mask in first frame after 1 tentatives
WARNING:root:Skip RandomAffine for zero-area mask in first frame after 1 tentatives
WARNING:root:Skip RandomAffine for zero-area mask in first frame after 1 tentatives
WARNING:root:Skip RandomAffine for zero-area mask in first frame after 1 tentatives
WARNING:root:Skip RandomAffine for zero-area mask in first frame after 1 tentatives
WARNING:root:Skip RandomAffine for zero-area mask in first frame after 1 tentatives
WARNING:root:Skip RandomAffine for zero-area mask in first frame after 1 tentatives
WARNING:root:Skip RandomAffine for zero-area mask in first frame after 1 tentatives
WARNING:root:Skip RandomAffine for zero-area mask in first frame after 1 tentatives
WARNING:root:Skip RandomAffine for zero-area mask in first frame after 1 tentatives
What should I do to reduce this warnning?
My hyperparameters:
I see the config in another issue, and i have a try, but..
I write like this, the program will output an error, i think you miss the multiplier, after i fix the bug, i run the program on SA-1B, the program will always out a warnning, like this:
What should I do to reduce this warnning?
My hyperparameters:
My dataset config:
The text was updated successfully, but these errors were encountered: