mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-14 05:42:32 +00:00
fix batch setting itself to 1
This commit is contained in:
1 parent
77d0632f86
commit
e1625c3ee0
1 file changed
-10
@@ -259,10 +259,6 @@ function SdInferencePanel({
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!sessionSubscriptionsWrapper.hasActiveProSubscription()) {
|
||||
setBatchCount(1);
|
||||
}
|
||||
|
||||
setIsEnqueuing(true);
|
||||
|
||||
//make sure seed is random on generation if random is selected
|
||||
@@ -270,8 +266,6 @@ function SdInferencePanel({
|
||||
internalSeed.current = generateRandomSeed();
|
||||
}
|
||||
|
||||
console.log(sdToken);
|
||||
|
||||
const request = {
|
||||
uuid_idempotency_token: uuidv4(),
|
||||
maybe_sd_model_token: sdToken || null,
|
||||
@@ -287,13 +281,9 @@ function SdInferencePanel({
|
||||
maybe_batch_count: batchCount,
|
||||
};
|
||||
|
||||
console.log("request", request);
|
||||
|
||||
const response = await EnqueueImageGen(request);
|
||||
|
||||
if (EnqueueImageGenIsSuccess(response)) {
|
||||
console.log("enqueuing...");
|
||||
|
||||
if (response.inference_job_token) {
|
||||
enqueueInferenceJob(
|
||||
response.inference_job_token,
|
||||
|
||||
Reference in new issue
Block a user