fix strength (#387)

Co-authored-by: Storyteller <storyteller@MacBook-Pro-de-Storyteller.local>
This commit is contained in:
ArEnScandStoryteller authored and GitHub committed 2024-05-15 18:36:23 -07:00
1 parent bb8c48d866
commit 905cbd135f
2 files changed
+4 -4

No files matched your search

@@ -15,7 +15,7 @@ export function StyleButtons() {
const [upscale, setUpscale] = useState(false);
const [faceDetail, setFaceDetail] = useState(false);
const [value, setStyleStrength] = useState(1.0);
const [strength, setStyleStrength] = useState(1.0);
const sliderChanged = (event: React.ChangeEvent<HTMLInputElement>) => {
setStyleStrength(parseFloat(event.target.value));
@@ -38,7 +38,7 @@ export function StyleButtons() {
};
const generateMovie = async () => {
const options = new GenerationOptions(upscale, faceDetail, value);
const options = new GenerationOptions(upscale, faceDetail, strength);
Queue.publish({
queueName: QueueNames.TO_ENGINE,
action: toEngineActions.GENERATE_VIDEO,
+2 -2
View File
@@ -365,7 +365,7 @@ export class APIManager {
visibility: Visibility,
use_face_detailer: boolean = false,
use_upscaler: boolean = false,
style_strength: number = 1.0,
use_strength: number = 1.0,
) {
const uuid = uuidv4();
@@ -382,7 +382,7 @@ export class APIManager {
creator_set_visibility: visibility,
use_face_detailer: use_face_detailer,
use_upscaler: use_upscaler,
style_strength: style_strength,
use_strength: use_strength,
};
const json_data = JSON.stringify(data);