From b834e3ad0bdba1cb3bc01f28c70523b85de84f64 Mon Sep 17 00:00:00 2001 From: Disty0 Date: Tue, 24 Oct 2023 02:01:38 +0300 Subject: [PATCH] Fix hires progress --- README.md | 2 +- modules/progress.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 98f7cc56c..b9e136c0e 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Additional models will be added as they become available and there is public int - *Intel Arc* GPUs using **OneAPI** with *IPEX XPU* libraries on both *Windows and Linux* - Any GPU compatible with *DirectX* on *Windows* using **DirectML** libraries. This includes support for AMD GPUs that are not supported by native ROCm libraries -- Any GPU compatible with **OpenVINO** libraries on both *Windows and Linux* +- Any GPU or device compatible with **OpenVINO** libraries on both *Windows and Linux* - *Apple M1/M2* on *OSX* using built-in support in Torch with **MPS** optimizations ## Install & Run diff --git a/modules/progress.py b/modules/progress.py index 935033185..db32abb31 100644 --- a/modules/progress.py +++ b/modules/progress.py @@ -70,7 +70,7 @@ def progressapi(req: ProgressRequest): if shared.state.job_count > 0: progress += shared.state.job_no / shared.state.job_count if shared.state.sampling_steps > 0 and shared.state.job_count > 0: - progress += 1 / shared.state.job_count * shared.state.sampling_step / shared.state.sampling_steps + progress += 1 / (shared.state.job_count / 2 if shared.state.processing_has_refined_job_count else 1) * shared.state.sampling_step / shared.state.sampling_steps progress = min(progress, 1) elapsed_since_start = time.time() - shared.state.time_start predicted_duration = elapsed_since_start / progress if progress > 0 else None