Closed z-jiaming closed 3 weeks ago
Hi @z-jiaming, we don't have support for val_dataset
in this release (our internal version of validation depends on Meta infrastructure). The vos_inference.py
at https://github.com/facebookresearch/sam2/tree/main/tools is the adapted public version that could run in open-source environments.
For validation, you can use vos_inference.py
to save the predictions on VOS datasets (and possibly split the dataset video list into per-GPU chunks to save PNG outputs using multiple GPUs), and then use the eval toolkits on each dataset to get the results.
Thank you for your quick response.
I saw the val_dataset
and assumed that the current framework had implemented it.
Looking forward to your subsequent implementation!
Thanks for your great work for model and training framework both! We want to add val_dataset and it seems that the framework has implemented it.
We add following changes in sam2.1_hiera_b+_MOSE_finetune.yaml:
However, it mistakes when assert in https://github.com/z-jiaming/sam2_plus/blob/aa9b8722d0585b661ded4b3dff1bd103540554ae/training/trainer.py#L973
What should I do to fix it, such as fix trainer.loss?