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

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

Open
Geson12138 opened this issue Jul 4, 2024 · 0 comments

Comments

@Geson12138
Copy link

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

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