Skip to content

Commit

Permalink
n_images bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxTeselkin committed Jul 18, 2023
1 parent e7a0e31 commit 2ed1399
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions train/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,10 @@ def auto_train(request: Request):
dataset_ids.append(dataset_info.id)
else:
dataset_ids = state["dataset_ids"]
n_images = 0
for dataset_id in dataset_ids:
dataset_info = api.dataset.get_info_by_id(dataset_id)
n_images += dataset_info.images_count
# download dataset
if os.path.exists(g.project_dir):
sly.fs.clean_dir(g.project_dir)
Expand Down

0 comments on commit 2ed1399

Please sign in to comment.