roboflow / roboflow/roboflow-python
Assertion error when running version.train
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 629
- Forks
- 140
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 5
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the version.train entry point shown in roboflow/core/version.py around line 450 and reproduce the example using the reported project and version. Trace why self.model is unset before the assertion, then verify that version.train() no longer raises this AssertionError for the reproduction steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100