From c13b26ba271bac327879d32f01307fc21a012321 Mon Sep 17 00:00:00 2001 From: Panchovix Date: Mon, 9 Sep 2024 14:30:22 -0300 Subject: [PATCH] Rephrase low GPU warning (#1761) Make emphasis that it's performance degradation, and for this diffusion process. --- backend/sampling/sampling_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/sampling/sampling_function.py b/backend/sampling/sampling_function.py index 4f9ec039..b7ed6624 100644 --- a/backend/sampling/sampling_function.py +++ b/backend/sampling/sampling_function.py @@ -199,7 +199,7 @@ def calc_cond_uncond_batch(model, cond, uncond, x_in, timestep, model_options): print(f"\n\n----------------------") print(f"[Low GPU VRAM Warning] Your current GPU free memory is {free_memory_mb:.2f} MB for this diffusion iteration.") print(f"[Low GPU VRAM Warning] This number is lower than the safe value of {safe_memory_mb:.2f} MB.") - print(f"[Low GPU VRAM Warning] If you continue the diffusion process, you may cause NVIDIA GPU degradation, and the speed may be extremely slow (about 10x slower).") + print(f"[Low GPU VRAM Warning] If you continue, you may cause NVIDIA GPU performance degradation for this diffusion process, and the speed may be extremely slow (about 10x slower).") print(f"[Low GPU VRAM Warning] To solve the problem, you can set the 'GPU Weights' (on the top of page) to a lower value.") print(f"[Low GPU VRAM Warning] If you cannot find 'GPU Weights', you can click the 'all' option in the 'UI' area on the left-top corner of the webpage.") print(f"[Low GPU VRAM Warning] If you want to take the risk of NVIDIA GPU fallback and test the 10x slower speed, you can (but are highly not recommended to) add '--disable-gpu-warning' to CMD flags to remove this warning.")