Skip to content
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

How to train on a multiple object dataset for 2D case (1-shot segmentation for multi-class dataset) #42

Open
jacoblam3112 opened this issue Sep 20, 2024 · 0 comments

Comments

@jacoblam3112
Copy link

Hi Thank you for sharing your code.

How can I train on multiple datasets ( or a single dataset with multiple class of images) simultaneously while making sure different classes are not mixed in the memory bank (image flow) during training ?

Should I do something like following for example:
Put 5 images of dataset A(1 prompt image and 4 training images) calculate the gradients, and then empty the memory bank
Put 5 images of dataset B calculate gradients (do gradient accumulation), empty the memory bank
do optimiser and then repeat
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant