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

TRAINING: Errors after executing version.train() due to "KeyError: 'box_loss'" #311

Open
HahaBill opened this issue Aug 19, 2024 · 1 comment

Comments

@HahaBill
Copy link

Hi everyone! I saw that there was a problem after I was done with training. It seems the Roboflow Python package has changed since last year. Previously, model evaluation details were not displayed in the terminal, but now it seems the error occurs before I can see the model evaluation in Roboflow. I suspect the issue might be that a request is being sent before the model evaluation is completed, which could explain why it’s unable to find "box_loss."

When I ran the newly trained model and used prediction, then it worked!

roboflow-python version: 1.1.40
operating system: macOS Monteray (12.7.4)
python version: Python 3.10.0

Error

Screenshot 2024-08-19 at 22 57 40

Code:

import roboflow

rf = roboflow.Roboflow(api_key="API_KEY")

workspace = rf.workspace()

another_project = workspace.project('project_id')
new_version = another_project.generate_version({"augmentation": {}, "preprocessing": {}})
version = another_project.version(new_version)
version.train()
@venkatram-dev
Copy link
Contributor

Created PR #313 .
After merging this PR 313, we can work on below issue.

There is one more issue #314.

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

2 participants