roboflow / roboflow-python

The official Roboflow Python package. Manage your datasets, models, and deployments. Roboflow has everything you need to build a computer vision application.
https://docs.roboflow.com/python
Apache License 2.0
311 stars 77 forks source link

Bug when getting model from project version #296

Open joaomarcoscrs opened 3 months ago

joaomarcoscrs commented 3 months ago

For some projects versions, the model is being None when it should not be.

This happens because the API may return a single 'model' key, not always 'models' on the check below

https://github.com/roboflow/roboflow-python/blob/3620fda4b84bd495ec2a2a2ebbfad6e7951189c6/roboflow/core/version.py#L100

iurisilvio commented 3 months ago

It was a recent change. Ref #276.

cc @stellasphere