fix: remove one redundant copy for result main eventloop

This commit is contained in:
zpeng11 committed 2025-01-06 22:38:33 -05:00
1 parent 3717127f49
commit 2bf2d6a554
2 files changed
+1 -4

No files matched your search

-3
View File
@@ -75,6 +75,3 @@ args.model_output_size = 1024 if args.use_sr else 512
if args.use_sr and args.use_interpolation:
args.use_interpolation = False
# if args.use_sr and args.sr_x4:
# print('debug')
# args.cacher_quality = 100
+1 -1
View File
@@ -886,7 +886,7 @@ def main():
need_a_copy = True
postprocessed_image = model_output.copy()
postprocessed_image = model_output
if args.perf == 'main':
print("Compute", time.perf_counter() - tic)
tic = time.perf_counter()