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

fasterrcnn_mobilenet_v3_large_fpn num_classes expected value 91 but got 20 instead #39

Open
ardeal opened this issue May 22, 2023 · 0 comments

Comments

@ardeal
Copy link

ardeal commented May 22, 2023

Hi,

I experienced the following error when I run demo.py:

Exception has occurred: ValueError
The parameter 'num_classes' expected value 91 but got 20 instead.
  File "C:\doc\code_python\AA\hukenovs_hagrid\detector\models\fasterrcnn.py", line 10, in __init__
    torchvision_model = torchvision.models.detection.fasterrcnn_mobilenet_v3_large_fpn(
  File "C:\doc\code_python\AA\hukenovs_hagrid\detector\utils.py", line 138, in build_model
    "FasterRCNN_mobilenet_large": FasterRCNN_Mobilenet_large(pretrained=pretrained, num_classes=num_classes),
  File "C:\doc\code_python\AA\hukenovs_hagrid\demo.py", line 149, in <module>
    model = build_model(
ValueError: The parameter 'num_classes' expected value 91 but got 20 instead

image

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