Dont unload models on cancle in high vram mode
This commit is contained in:
parent
ef17335614
commit
be21c1f2bd
2 changed files with 3 additions and 2 deletions
|
|
@ -319,14 +319,13 @@ void AceStepWorker::runGeneration()
|
|||
if (m_cancelRequested.load())
|
||||
{
|
||||
emit generationCanceled(m_currentSong);
|
||||
unloadModels();
|
||||
m_busy.store(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (lmResult != 0)
|
||||
{
|
||||
emit generationError("LM generation failed or was canceled");
|
||||
emit generationError("LM generation failed");
|
||||
unloadModels();
|
||||
m_busy.store(false);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -102,6 +102,8 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
|
||||
currentSong = songModel->getSong(0);
|
||||
|
||||
// Start the worker thread and enter its event loop
|
||||
QObject::connect(&aceThread, &QThread::started, [this]() {qDebug() << "Worker thread started";});
|
||||
aceThread.start();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue