supervisely 6.73.443__py3-none-any.whl → 6.73.444__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- supervisely/nn/training/train_app.py +18 -7
- {supervisely-6.73.443.dist-info → supervisely-6.73.444.dist-info}/METADATA +1 -1
- {supervisely-6.73.443.dist-info → supervisely-6.73.444.dist-info}/RECORD +7 -7
- {supervisely-6.73.443.dist-info → supervisely-6.73.444.dist-info}/LICENSE +0 -0
- {supervisely-6.73.443.dist-info → supervisely-6.73.444.dist-info}/WHEEL +0 -0
- {supervisely-6.73.443.dist-info → supervisely-6.73.444.dist-info}/entry_points.txt +0 -0
- {supervisely-6.73.443.dist-info → supervisely-6.73.444.dist-info}/top_level.txt +0 -0
|
@@ -3177,22 +3177,33 @@ class TrainApp:
|
|
|
3177
3177
|
experiment_name = self.gui.training_process.get_experiment_name()
|
|
3178
3178
|
|
|
3179
3179
|
train_collection_idx = 1
|
|
3180
|
-
val_collection_idx = 1
|
|
3180
|
+
val_collection_idx = 1
|
|
3181
|
+
|
|
3182
|
+
def _extract_index_from_col_name(name: str, expected_prefix: str) -> Optional[int]:
|
|
3183
|
+
parts = name.split("_")
|
|
3184
|
+
if len(parts) == 2 and parts[0] == expected_prefix and parts[1].isdigit():
|
|
3185
|
+
return int(parts[1])
|
|
3186
|
+
return None
|
|
3181
3187
|
|
|
3182
3188
|
# Get train collection with max idx
|
|
3183
3189
|
if len(all_train_collections) > 0:
|
|
3184
|
-
|
|
3185
|
-
|
|
3190
|
+
train_indices = [_extract_index_from_col_name(collection.name, "train") for collection in all_train_collections]
|
|
3191
|
+
train_indices = [idx for idx in train_indices if idx is not None]
|
|
3192
|
+
if len(train_indices) > 0:
|
|
3193
|
+
train_collection_idx = max(train_indices) + 1
|
|
3194
|
+
|
|
3186
3195
|
# Get val collection with max idx
|
|
3187
3196
|
if len(all_val_collections) > 0:
|
|
3188
|
-
|
|
3189
|
-
|
|
3197
|
+
val_indices = [_extract_index_from_col_name(collection.name, "val") for collection in all_val_collections]
|
|
3198
|
+
val_indices = [idx for idx in val_indices if idx is not None]
|
|
3199
|
+
if len(val_indices) > 0:
|
|
3200
|
+
val_collection_idx = max(val_indices) + 1
|
|
3190
3201
|
# -------------------------------- #
|
|
3191
3202
|
|
|
3192
3203
|
# Create Train Collection
|
|
3193
3204
|
train_img_ids = list(self._train_split_item_ids)
|
|
3194
3205
|
train_collection_description = f"Collection with train {item_type} for experiment: {experiment_name}"
|
|
3195
|
-
train_collection = self._api.entities_collection.create(self.project_id, f"train_{train_collection_idx}", train_collection_description)
|
|
3206
|
+
train_collection = self._api.entities_collection.create(self.project_id, f"train_{train_collection_idx:03d}", train_collection_description)
|
|
3196
3207
|
train_collection_id = getattr(train_collection, "id", None)
|
|
3197
3208
|
if train_collection_id is None:
|
|
3198
3209
|
raise AttributeError("Train EntitiesCollectionInfo object does not have 'id' attribute")
|
|
@@ -3202,7 +3213,7 @@ class TrainApp:
|
|
|
3202
3213
|
# Create Val Collection
|
|
3203
3214
|
val_img_ids = list(self._val_split_item_ids)
|
|
3204
3215
|
val_collection_description = f"Collection with val {item_type} for experiment: {experiment_name}"
|
|
3205
|
-
val_collection = self._api.entities_collection.create(self.project_id, f"val_{val_collection_idx}", val_collection_description)
|
|
3216
|
+
val_collection = self._api.entities_collection.create(self.project_id, f"val_{val_collection_idx:03d}", val_collection_description)
|
|
3206
3217
|
val_collection_id = getattr(val_collection, "id", None)
|
|
3207
3218
|
if val_collection_id is None:
|
|
3208
3219
|
raise AttributeError("Val EntitiesCollectionInfo object does not have 'id' attribute")
|
|
@@ -1012,7 +1012,7 @@ supervisely/nn/tracker/botsort/tracker/kalman_filter.py,sha256=waTArMcbmpHAzb57a
|
|
|
1012
1012
|
supervisely/nn/tracker/botsort/tracker/matching.py,sha256=bgnheHwWD3XZSI3OJVfdrU5bYJ44rxPHzzSElfg6LZM,6600
|
|
1013
1013
|
supervisely/nn/tracker/botsort/tracker/mc_bot_sort.py,sha256=dFjWmubyJLrUP4i-CJaOhPEkQD-WD144deW7Ua5a7Rc,17775
|
|
1014
1014
|
supervisely/nn/training/__init__.py,sha256=gY4PCykJ-42MWKsqb9kl-skemKa8yB6t_fb5kzqR66U,111
|
|
1015
|
-
supervisely/nn/training/train_app.py,sha256=
|
|
1015
|
+
supervisely/nn/training/train_app.py,sha256=l4t4zzE-nPwV-tXzbw4ENQcGMQ1PCeqmyxfkLg_eFDI,133159
|
|
1016
1016
|
supervisely/nn/training/gui/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
|
1017
1017
|
supervisely/nn/training/gui/classes_selector.py,sha256=tqmVwUfC2u5K53mZmvDvNOhu9Mw5mddjpB2kxRXXUO8,12453
|
|
1018
1018
|
supervisely/nn/training/gui/gui.py,sha256=_CtpzlwP6WLFgOTBDB_4RPcaqrQPK92DwSCDvO-dIKM,51749
|
|
@@ -1127,9 +1127,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
1127
1127
|
supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
|
|
1128
1128
|
supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
|
|
1129
1129
|
supervisely_lib/__init__.py,sha256=yRwzEQmVwSd6lUQoAUdBngKEOlnoQ6hA9ZcoZGJRNC4,331
|
|
1130
|
-
supervisely-6.73.
|
|
1131
|
-
supervisely-6.73.
|
|
1132
|
-
supervisely-6.73.
|
|
1133
|
-
supervisely-6.73.
|
|
1134
|
-
supervisely-6.73.
|
|
1135
|
-
supervisely-6.73.
|
|
1130
|
+
supervisely-6.73.444.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
1131
|
+
supervisely-6.73.444.dist-info/METADATA,sha256=wnmK1_pmFJflYjyd6PQCw6Sa4k5F7i_ISTiEq4qa3-0,35480
|
|
1132
|
+
supervisely-6.73.444.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
1133
|
+
supervisely-6.73.444.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
|
|
1134
|
+
supervisely-6.73.444.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
|
|
1135
|
+
supervisely-6.73.444.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|