From 68b0acf8ed33771f6977e2b0483a127eddbf35d3 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Tue, 4 Mar 2025 19:43:30 -0500 Subject: [PATCH] always send event for now --- .../src/ml/stable_diffusion/stable_diffusion_pipeline.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/desktop/src-tauri/src/ml/stable_diffusion/stable_diffusion_pipeline.rs b/crates/desktop/src-tauri/src/ml/stable_diffusion/stable_diffusion_pipeline.rs index e7caac0fca..16f45200a7 100644 --- a/crates/desktop/src-tauri/src/ml/stable_diffusion/stable_diffusion_pipeline.rs +++ b/crates/desktop/src-tauri/src/ml/stable_diffusion/stable_diffusion_pipeline.rs @@ -132,7 +132,8 @@ pub fn stable_diffusion_pipeline(args: Args<'_>) -> Result { println!("Building VAE model from file {:?}...", &vae_file); let mut notify_download_complete = false; - if !vae_file.exists() { + //if !vae_file.exists() { + if true { notify_download_complete = true; app.emit("notification", NotificationEvent::ModelDownloadStarted { model_name: repo, @@ -175,7 +176,8 @@ pub fn stable_diffusion_pipeline(args: Args<'_>) -> Result { .map_err(|err| anyhow!("error fetching model: {:?}", err))?; let mut notify_download_complete = false; - if !unet_file.exists() { + //if !unet_file.exists() { + if true { notify_download_complete = true; app.emit("notification", NotificationEvent::ModelDownloadStarted { model_name: repo,