update
This commit is contained in:
@@ -5050,21 +5050,13 @@ void MainWindow::showBlackholeContextMenu(const QPoint& globalPos, const QString
|
||||
client->setBaseUrl(QUrl(base));
|
||||
|
||||
QString immediateErr;
|
||||
QString prompt = dlg.promptText();
|
||||
if (prompt.isEmpty()) {
|
||||
prompt = BlackholeResolveDialog::defaultModelInpaintPrompt();
|
||||
}
|
||||
const QString prompt = dlg.promptText();
|
||||
QNetworkReply* reply = client->inpaintAsync(
|
||||
cropPng,
|
||||
maskPng,
|
||||
// LaMa(物体移除 / 擦除)
|
||||
QStringLiteral("lama"),
|
||||
QStringLiteral("flux_fill"),
|
||||
prompt,
|
||||
// 抑制人物与去人常见伪影(中英混合便于通用后端)
|
||||
QStringLiteral(
|
||||
"person, human, face, body, hands, feet, portrait, silhouette, skin, clothing folds, hair, "
|
||||
"shadow, ghosting, blur halo, seam, banding, watermark, text, logo, signature, jpeg artifacts"),
|
||||
// 去人物场景:strength 太低容易“保留人物残影”;适当提高更干净
|
||||
QString(),
|
||||
0.72,
|
||||
1024,
|
||||
&immediateErr);
|
||||
@@ -5077,7 +5069,7 @@ void MainWindow::showBlackholeContextMenu(const QPoint& globalPos, const QString
|
||||
}
|
||||
|
||||
auto* task = new CancelableTaskDialog(QStringLiteral("黑洞修复"),
|
||||
QStringLiteral("正在请求后端模型补全,请稍候……"),
|
||||
QStringLiteral("补全中…"),
|
||||
this);
|
||||
task->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
connect(task, &CancelableTaskDialog::canceled, this, [reply, task]() {
|
||||
|
||||
Reference in New Issue
Block a user