Remove processing time as of progress bar
This commit is contained in:
parent
5aa91e9157
commit
7d42dbc4bc
7
run.py
7
run.py
@ -89,12 +89,8 @@ def pre_check():
|
|||||||
|
|
||||||
|
|
||||||
def start_processing():
|
def start_processing():
|
||||||
start_time = time.time()
|
|
||||||
if args['gpu']:
|
if args['gpu']:
|
||||||
process_video(args['source_img'], args["frame_paths"])
|
process_video(args['source_img'], args["frame_paths"])
|
||||||
end_time = time.time()
|
|
||||||
print(flush=True)
|
|
||||||
print(f"Processing time: {end_time - start_time:.2f} seconds", flush=True)
|
|
||||||
return
|
return
|
||||||
frame_paths = args["frame_paths"]
|
frame_paths = args["frame_paths"]
|
||||||
n = len(frame_paths)//(args['cores_count'])
|
n = len(frame_paths)//(args['cores_count'])
|
||||||
@ -106,9 +102,6 @@ def start_processing():
|
|||||||
p.get()
|
p.get()
|
||||||
pool.close()
|
pool.close()
|
||||||
pool.join()
|
pool.join()
|
||||||
end_time = time.time()
|
|
||||||
print(flush=True)
|
|
||||||
print(f"Processing time: {end_time - start_time:.2f} seconds", flush=True)
|
|
||||||
|
|
||||||
|
|
||||||
def preview_image(image_path):
|
def preview_image(image_path):
|
||||||
|
Loading…
Reference in New Issue
Block a user