mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
fix strength (#387)
Co-authored-by: Storyteller <storyteller@MacBook-Pro-de-Storyteller.local>
This commit is contained in:
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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user