About a code problem in Fine Tune SAM

Describe your question/issue here! (delete this when you post)

  • Project Type: Object Segmentation
  • Operating System & Browser: Windows and Google
  • Project Universe Link or Workspace/Project ID:

I followed a Blog that uses Google Colab for Fine tune the SAM model. However, i want to execute the complete code inside the Jupyter notebook. The main training code:

!python training/train.py -c ‘configs/train.yaml’ --use-cluster 0 --num-gpus 1

Works in Google colab, but when i execute the same in Jupyter notebook with the slaces modification as:
!python C:\Users\Webbies\Jupyter_Notebooks\Berger_Exterior_Segmentation\sam2\training\train.py -c ‘sam2\configs\train.yaml’ --use-cluster 0 --num-gpus 1

It shows the error: hydra.errors.MissingConfigException: Cannot find primary config ‘‘sam2\configs\train.yaml’’. Check that it’s in your config search path.

Config search path:
provider=hydra, path=pkg://hydra.conf
provider=main, path=pkg://sam2
provider=schema, path=structured://

How to solve this issue?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.