Move process time to the correct place
This commit is contained in:
parent
b9d20c0bff
commit
15cd4b8a22
9
run.py
9
run.py
@ -64,6 +64,7 @@ def start_processing():
|
|||||||
start_time = time.time()
|
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"])
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
end_time = time.time()
|
end_time = time.time()
|
||||||
print(flush=True)
|
print(flush=True)
|
||||||
@ -71,6 +72,10 @@ def start_processing():
|
|||||||
print(flush=True)
|
print(flush=True)
|
||||||
end_time = time.time()
|
end_time = time.time()
|
||||||
>>>>>>> 2b14613 (Move process time to the correct place)
|
>>>>>>> 2b14613 (Move process time to the correct place)
|
||||||
|
=======
|
||||||
|
end_time = time.time()
|
||||||
|
print(flush=True)
|
||||||
|
>>>>>>> 0f782ff (Move process time to the correct place)
|
||||||
print(f"Processing time: {end_time - start_time:.2f} seconds", 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"]
|
||||||
@ -83,6 +88,7 @@ def start_processing():
|
|||||||
p.get()
|
p.get()
|
||||||
pool.close()
|
pool.close()
|
||||||
pool.join()
|
pool.join()
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
end_time = time.time()
|
end_time = time.time()
|
||||||
print(flush=True)
|
print(flush=True)
|
||||||
@ -119,7 +125,10 @@ def preview_video(video_path):
|
|||||||
cap.release()
|
cap.release()
|
||||||
=======
|
=======
|
||||||
print(flush=True)
|
print(flush=True)
|
||||||
|
=======
|
||||||
|
>>>>>>> 0f782ff (Move process time to the correct place)
|
||||||
end_time = time.time()
|
end_time = time.time()
|
||||||
|
print(flush=True)
|
||||||
print(f"Processing time: {end_time - start_time:.2f} seconds", flush=True)
|
print(f"Processing time: {end_time - start_time:.2f} seconds", flush=True)
|
||||||
>>>>>>> 2b14613 (Move process time to the correct place)
|
>>>>>>> 2b14613 (Move process time to the correct place)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user