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

Assertion error when running version.train #314

Open venkatram-dev opened 2 months ago

venkatram-dev commented 2 months ago

While debugging https://github.com/roboflow/roboflow-python/issues/311 , stumbled upon another issue.

Steps to reproduce

From the UI, Created a new project, new version with sample dataset, created version.

Ran the training code.


workspace = rf.workspace()

project = workspace.project('test2-forest-fire-detection')

version = project.version(6)

print ('version',version)

version.train()

Getting error

Traceback (most recent call last):
  File "/Users/venkat/Documents/robo_python_trial/r_train.py", line 13, in <module>
    version.train()
  File "/Users/venkat/Documents/robo_python_trial/rvenv/lib/python3.12/site-packages/roboflow/core/version.py", line 450, in train
    assert self.model
           ^^^^^^^^^^
AssertionError