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

version.model returns NoneType, failing all model inference calls in production #291

Open
by12380 opened this issue Jul 18, 2024 · 0 comments

Comments

@by12380
Copy link

by12380 commented Jul 18, 2024

Problem

version.model returns NoneType, failing all model inference calls in production

Reproduce steps

Take any public project that has a model:
https://universe.roboflow.com/batuhan-yilmaz-mnu8w/segmentationexample/model/5

Run python inference code:

!pip install roboflow -U # <---- version 1.1.36

from roboflow import Roboflow

rf = Roboflow(api_key="API_KEY")
project = rf.workspace().project("segmentationexample")
model = project.version(5).model

model.predict() # <--- AttributeError: 'NoneType' object has no attribute 'predict'
type(model) # <--- NoneType

Expected behavior

Current workaround is to downgrade roboflow to version 1.1.33

!pip install roboflow==1.1.33

from roboflow import Roboflow

rf = Roboflow(api_key="API_KEY")
project = rf.workspace().project("segmentationexample")
model = project.version(5).model

type(model) # <--- roboflow.models.semantic_segmentation.SemanticSegmentationModel

Potential root cause:

#276

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