Skip to content

Commit

Permalink
Fix model download dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ZDisket committed Apr 23, 2024
1 parent 01430cd commit 11c43ef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

WinDiffusion is a Stable Diffusion frontend written in C++/Qt, without a single line of Python involved, using the ONNX runtime and DirectML to execute models

![](assets/canvasmountain.gif)

*Showcase of combined drawing-img2img Canvas tab*

### So, what's the deal?

1. **Natively compatible with all GPU vendors**. The DirectML backend supports any DirectX 12-capable GPU
Expand Down
Binary file added assets/canvasmountain.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions misc/modeldownloaddialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ ModelDownloadDialog::ModelDownloadDialog(QWidget *parent, const QString &preload

connect(Downloader.get(), &ModelDownloaderThread::verificationFinished, this, &ModelDownloadDialog::onVerificationFinished);
connect(Downloader.get(), &ModelDownloaderThread::downloadCanceled, this, &ModelDownloadDialog::onDownloadCanceled);
connect(Downloader.get(), &ModelDownloaderThread::downloadFinished, this, &ModelDownloadDialog::onDownloadFinished);

Downloader->AsOp = AsyncOp.get();
Downloader->start();
Expand Down Expand Up @@ -71,7 +72,7 @@ void ModelDownloadDialog::closeEvent(QCloseEvent *event)
void ModelDownloadDialog::on_btnVerify_clicked()
{

Downloader->enqueueVerification(ui->ledtModelName->text());
Downloader->enqueueVerification(ui->ledtModelName->text().trimmed());

}

Expand Down Expand Up @@ -154,6 +155,8 @@ void ModelDownloadDialog::onDownloadFinished(QString modelId, bool success)

QMessageBox::information(this, "Success!", "The model has succesfully finished downloading. You may close this dialog and use it now.");

ui->lblProgressShow->setText("Finished.");

emit requestModelRefresh();

}
Expand Down Expand Up @@ -206,8 +209,8 @@ void ModelDownloadDialog::on_btnDownload_clicked()



Downloader->enqueueDownload(ui->ledtModelName->text(),
appDirPath / "models" / ui->ledtSaveModelName->text().toStdString()
Downloader->enqueueDownload(ui->ledtModelName->text().trimmed(),
appDirPath / "models" / ui->ledtSaveModelName->text().trimmed().toStdString()
);

}
Expand Down

0 comments on commit 11c43ef

Please sign in to comment.