-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unequal augmentations within load_dataloader for 'disnet' training, in train_dis.py #5
Comments
Also,
The argument value is not used in the augmentations. Images and masks during training are not resized. Validation set is resized, but not to the --input_size value.
|
I don't understand how pull requests work, functionally, nor do I think it would be appropriate given the amount of mods I have done beyond this. The original code used bilinear for validation images and masks.
I changed to using nearest resampling for masks for disnet and gt_encoder trainer to maintain the hard edges, and area resampling for rgb images. Area resampling does a slightly better job if the downsampling step is big, and if not then it just looks the same as bilinear. That noted, here is my solution to the issues
My edit requires a changes to /utils/isnet_dataset.py too.
If that doesn't work my humble apologies, for I am but a humble glue eater slapping code together.
|
I have been using your very helpful script to train GT_Encoder, first time using Lightning and it's really great.
I was about to start training Disnet and I noticed something.
image_transform and gt_transform are using different augmentations.
This would random crop and rotate/flip the masks, but not the images.
The text was updated successfully, but these errors were encountered: