Skip to content

Commit b947bfc

Browse files
committed
remove version model defensive check
1 parent af4eb47 commit b947bfc

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

roboflow/core/version.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -446,14 +446,7 @@ def live_plot(epochs, mAP, loss, title=""):
446446

447447
time.sleep(5)
448448

449-
response = requests.get(f"{API_URL}/{workspace}/{project}/{self.version}?api_key={self.__api_key}")
450-
if response.ok:
451-
version_info = response.json()["version"]
452-
has_model = bool(version_info.get("models"))
453-
else:
454-
has_model = False
455-
456-
if not has_model:
449+
if not self.model:
457450
if self.type == TYPE_OBJECT_DETECTION:
458451
self.model = ObjectDetectionModel(
459452
self.__api_key,

0 commit comments

Comments
 (0)