Error when deploying

when deploying to roboflow this error keeps showing any possible fix ?

AttributeError Traceback (most recent call last)
----> 1 project.version(dataset.version).deploy(model_type=“yolov8”, model_path=f"{HOME}/runs/detect/train/")

/usr/local/lib/python3.8/dist-packages/roboflow/core/ in deploy(self, model_type, model_path)
330 “nc”: model[“model”].nc,
331 “args”: {
→ 332 k: val for k, val in model[“model”].args.items() if k != “hydra”
333 },
334 “ultralytics_version”: ultralytics.version,

AttributeError: ‘UltralyticsCFG’ object has no attribute ‘items’

1 Like

Had the same issue. A solution, if you want to deploy while they fix this issue. Take the code of the deploy method and create a deploy2 method in your notebook with line 332 being replaced by:

k: val for k, val in dict(model[“model”].args).items() if k != “hydra”

then call this deploy2 instead of deploy.

1 Like

Hi @Bllfoad @ChNi - I’ve been notified by the team that the issue should be resolved now.