I have getting this error:-
FileNotFoundError: [Errno 2] No such file or directory: βC:/Users/HP/Repositories/Projects/candy_images/models/runs/detect/train/weights\weights/best.ptβ
But my code is this:-
import roboflow
rf = roboflow.Roboflow(api_key=" : }( ")
workspace = rf.workspace(" : }( β)
project = workspace.project(β : }( ")
workspace.deploy_model(
model_type=βyolov8β,
model_path=βC:/Users/HP/Repositories/Projects/candy_images/models/runs/detect/train/weightsβ,
project_ids=[" : }( "],
model_name=βyolov8-my_modelβ
)
Why getting this kind of invalid error on another path?
Project type is : Object Detection
OS is : Windows 11
I build my model on Roboflow ui and downloaded that into my local as zip.
My structure is:
-/
βββ main.py
βββ data.yaml
βββ README.dataset.txt
βββ README.roboflow.txt
βββ train/
β βββ images/
β βββ labels/
βββ valid/
β βββ images/
β βββ labels/
βββ test/
βββ images/
βββ labels/
I hope you will assist me ![]()