facebookresearch / facebookresearch/sam2
Question about max_num_objects parameter in training config
- Dominant language
- Jupyter Notebook
- Stars
- 19.9k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
I am currently working on finetuning the model on my own dataset. However, I am having some trouble with the `max_num_objects` parameter in the config file. The more I increase this parameter, the higher are my compute requirements. My images have 1-50 objects each and I already struggle with setting the value to 20.
So, I have two questions:
1. What does the parameter do? Will this randomly choose a maximum of `max_num_objects` for each image? If so, will my model also converge, if the parameter is set lower, let´s say 5-10?
2. Why does this increase the compute requirements? Are the prediction processes for all single objects handled parallelly? If so, can this be changed to work in sequence, even if this would increase the training time?
I would greatly appreciate an answer to this, as it currently restricts me in continuing with my research project.
Thank you in advance!
Contributor guide
Assessment
This issue has not been assessed yet.