Skip to content

Commit bbf5fa5

Browse files
authored
Bugfix/ Model upload logs (#155)
* Update deploy URL to correct path * Check for ultralytics version 8.0.134
1 parent 781c553 commit bbf5fa5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

roboflow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from roboflow.core.workspace import Workspace
1313
from roboflow.util.general import write_line
1414

15-
__version__ = "1.1.1"
15+
__version__ = "1.1.2"
1616

1717

1818
def check_key(api_key, model, notebook, num_retries=0):

roboflow/core/version.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ def download(self, model_format=None, location=None, overwrite: bool = True):
181181
try:
182182
import_module("ultralytics")
183183
print_warn_for_wrong_dependencies_versions(
184-
[("ultralytics", "<=", "8.0.20")]
184+
[("ultralytics", "==", "8.0.134")]
185185
)
186186
except ImportError as e:
187187
print(
188-
"[WARNING] we noticed you are downloading a `yolov8` datasets but you don't have `ultralytics` installed. Roboflow `.deploy` supports only models trained with `ultralytics<=8.0.20`, to intall it `pip install ultralytics<=8.0.20`."
188+
"[WARNING] we noticed you are downloading a `yolov8` datasets but you don't have `ultralytics` installed. Roboflow `.deploy` supports only models trained with `ultralytics==8.0.134`, to intall it `pip install ultralytics==8.0.134`."
189189
)
190190
# silently fail
191191
pass
@@ -434,7 +434,7 @@ def live_plot(epochs, mAP, loss, title=""):
434434
# return the model object
435435
return self.model
436436

437-
# @warn_for_wrong_dependencies_versions([("ultralytics", "<=", "8.0.20")])
437+
# @warn_for_wrong_dependencies_versions([("ultralytics", "==", "8.0.134")])
438438
def deploy(self, model_type: str, model_path: str) -> None:
439439
"""Uploads provided weights file to Roboflow
440440
@@ -464,7 +464,7 @@ def deploy(self, model_type: str, model_path: str) -> None:
464464
)
465465

466466
print_warn_for_wrong_dependencies_versions(
467-
[("ultralytics", "<=", "8.0.20")]
467+
[("ultralytics", "==", "8.0.134")]
468468
)
469469

470470
elif "yolov5" in model_type or "yolov7" in model_type:
@@ -593,14 +593,14 @@ def deploy(self, model_type: str, model_path: str) -> None:
593593

594594
if self.public:
595595
print(
596-
f"View the status of your deployment at: {APP_URL}/{self.workspace}/{self.project}/deploy/{self.version}"
596+
f"View the status of your deployment at: {APP_URL}/{self.workspace}/{self.project}/{self.version}"
597597
)
598598
print(
599599
f"Share your model with the world at: {UNIVERSE_URL}/{self.workspace}/{self.project}/model/{self.version}"
600600
)
601601
else:
602602
print(
603-
f"View the status of your deployment at: {APP_URL}/{self.workspace}/{self.project}/deploy/{self.version}"
603+
f"View the status of your deployment at: {APP_URL}/{self.workspace}/{self.project}/{self.version}"
604604
)
605605

606606
except Exception as e:
@@ -730,7 +730,7 @@ def data_yaml_callback(content: dict) -> dict:
730730
try:
731731
# get_wrong_dependencies_versions raises exception if ultralytics is not installed at all
732732
if format == "yolov8" and not get_wrong_dependencies_versions(
733-
dependencies_versions=[("ultralytics", ">=", "8.0.30")]
733+
dependencies_versions=[("ultralytics", "==", "8.0.134")]
734734
):
735735
content["train"] = "train/images"
736736
content["val"] = "valid/images"

0 commit comments

Comments
 (0)