File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed
Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change 99import tempfile
1010import threading
1111import time
12+ import uuid
1213from os .path import basename
1314from pathlib import Path
1415from urllib .parse import urlparse
15- import uuid
1616
1717import boto3
1818import cv2
@@ -1475,24 +1475,6 @@ def __tqdm_thread_upload_annotations(
14751475 break
14761476
14771477
1478- def __tqdm_thread_upload_preannotations (
1479- total_num , uploaded , couldnt_upload , finish_event
1480- ):
1481- with tqdm (total = total_num ) as pbar :
1482- while True :
1483- finished = finish_event .wait (_TIME_TO_UPDATE_IN_TQDM )
1484- if not finished :
1485- sum_all = 0
1486- for i in couldnt_upload :
1487- sum_all += len (i )
1488- for i in uploaded :
1489- sum_all += len (i )
1490- pbar .update (sum_all - pbar .n )
1491- else :
1492- pbar .update (total_num - pbar .n )
1493- break
1494-
1495-
14961478def upload_preannotations_from_folder_to_project (
14971479 project , folder_path , from_s3_bucket = None , recursive_subfolders = False
14981480):
You can’t perform that action at this time.
0 commit comments