JiehongLin / SAM-6D

[CVPR2024] Code for "SAM-6D: Segment Anything Model Meets Zero-Shot 6D Object Pose Estimation".
353 stars 30 forks source link

"Can't instantiate abstract class Instance_Segmentation_Model with abstract method forward" #58

Open Geson12138 opened 4 months ago

Geson12138 commented 4 months ago

I run the command "sh demo.sh", and an error occurred:

<hydra.errors.InstantiationException: Error in call to target 'model.detector.Instance_Segmentation_Model': TypeError("Can't instantiate abstract class Instance_Segmentation_Model with abstract method forward")>

I found that "class Instance_Segmentation_Model(pl.LightningModule):" in model.detector.py It seems that there is an abstract method "forward()" in the class "pl.LightningModule", which needs to be defined when instantiating it.

So I want to know how to solve this problem? Thank you