-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config file of few supervision. #22
Comments
Hi, the config file of C.dataset_path = osp.join(C.volna, 'DATA/pascal_voc')
C.img_root_folder = C.dataset_path
C.gt_root_folder = C.dataset_path
C.labeled_ratio = 2
C.train_source = osp.join(C.dataset_path,'subset_train_aug/pseudoseg_labeled_1-{}.txt'.format(C.labeled_ratio))
C.unsup_source = osp.join(C.dataset_path, 'train_aug.txt')
C.eval_source = osp.join(C.dataset_path, "val.txt")
C.is_test = False
C.num_train_imgs = 1464 // C.labeled_ratio
C.num_eval_imgs = 1449
C.num_unsup_imgs = 10582 # unsupervised samples
C.max_samples = max(C.num_train_imgs, C.num_unsup_imgs)
"""Train Config"""
if os.getenv('learning_rate'):
C.lr = float(os.environ['learning_rate'])
else:
C.lr = 0.001
if os.getenv('batch_size'):
C.batch_size = int(os.environ['batch_size'])
else:
C.batch_size = 8
C.nepochs = 30
C.niters_per_epoch = int(math.ceil(C.max_samples * 1.0 // C.batch_size))
C.num_workers = 8
C.train_scale_array = [0.5, 0.75, 1, 1.5, 1.75, 2.0]
C.warm_up_epoch = 0
C.cps_weight = 0.1
C.cutmix_mask_prop_range=(0.25, 0.5)
C.cutmix_boxmask_n_boxes=3
C.cutmix_boxmask_fixed_aspect_ratio=False
C.cutmix_boxmask_by_size=False
C.cutmix_boxmask_outside_bounds=False
C.cutmix_boxmask_no_invert=False |
Could you provide more details? |
It seems the problem is caused by missing directory: TorchSemiSeg/DATA/pascal_voc/pseudoseg_labeled_1-2. |
Hi, there is no need to create such a directory. All the images could be found in the VOC Aug set. |
It is a very nice work.
Thank you so much for your contribution.
Is it possible to release scripts for few-supervision on PASCAL VOC 2012, too?
The text was updated successfully, but these errors were encountered: