The official Roboflow Python package. Manage your datasets, models, and deployments. Roboflow has everything you need to build a computer vision application.
Traceback (most recent call last):
File "/path/to/my_script.py", line 10, in <module>
version.deploy(
File "/path/to/roboflow-python/roboflow/core/version.py", line 522, in deploy
model = torch.load(os.path.join(model_path, filename))
File "/path/to/roboflow-python/venv/lib/python3.9/site-packages/ultralytics/utils/patches.py", line 86, in torch_load
return _torch_load(*args, **kwargs)
File "/path/to/roboflow-python/venv/lib/python3.9/site-packages/torch/serialization.py", line 1097, in load
return _load(
File "/path/to/roboflow-python/venv/lib/python3.9/site-packages/torch/serialization.py", line 1525, in _load
result = unpickler.load()
File "/path/to/roboflow-python/venv/lib/python3.9/site-packages/torch/serialization.py", line 1515, in find_class
return super().find_class(mod_name, name)
AttributeError: Can't get attribute 'YOLOv10DetectionModel' on <module 'ultralytics.nn.tasks' from '/path/to/roboflow-python/venv/lib/python3.9/site-packages/ultralytics/nn/tasks.py'>
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
How has this change been tested, please provide a testcase or example of how you tested the change?
Executed above-mentioned script from branch with fix applied
Any specific deployment considerations
N/A
Docs
[x] Docs updated? Added extra example in main README.md showing how to deploy yolov10 model
Description
Below results in error:
Above results in following exception:
Type of change
How has this change been tested, please provide a testcase or example of how you tested the change?
Executed above-mentioned script from branch with fix applied
Any specific deployment considerations
N/A
Docs
yolov10
model