Spaces:
Running
on
Zero
Running
on
Zero
Update roop/core.py
Browse files- roop/core.py +2 -2
roop/core.py
CHANGED
@@ -67,7 +67,7 @@ def parse_args() -> None:
|
|
67 |
globals.temp_frame_quality = args.temp_frame_quality
|
68 |
globals.output_video_encoder = args.output_video_encoder
|
69 |
globals.output_video_quality = args.output_video_quality
|
70 |
-
globals.max_memory =
|
71 |
globals.execution_providers = decode_execution_providers(args.execution_provider)
|
72 |
globals.execution_threads = args.execution_threads
|
73 |
|
@@ -96,7 +96,7 @@ def limit_resources() -> None:
|
|
96 |
gpus = tensorflow.config.experimental.list_physical_devices('GPU')
|
97 |
for gpu in gpus:
|
98 |
tensorflow.config.experimental.set_virtual_device_configuration(gpu, [
|
99 |
-
tensorflow.config.experimental.VirtualDeviceConfiguration(memory_limit=
|
100 |
])
|
101 |
# limit memory usage
|
102 |
if globals.max_memory:
|
|
|
67 |
globals.temp_frame_quality = args.temp_frame_quality
|
68 |
globals.output_video_encoder = args.output_video_encoder
|
69 |
globals.output_video_quality = args.output_video_quality
|
70 |
+
globals.max_memory = args.max_memory
|
71 |
globals.execution_providers = decode_execution_providers(args.execution_provider)
|
72 |
globals.execution_threads = args.execution_threads
|
73 |
|
|
|
96 |
gpus = tensorflow.config.experimental.list_physical_devices('GPU')
|
97 |
for gpu in gpus:
|
98 |
tensorflow.config.experimental.set_virtual_device_configuration(gpu, [
|
99 |
+
tensorflow.config.experimental.VirtualDeviceConfiguration(memory_limit=2048)
|
100 |
])
|
101 |
# limit memory usage
|
102 |
if globals.max_memory:
|