fix bug strength value should be float
This commit is contained in:
parent
725896ecc0
commit
c3fa0334de
|
|
@ -437,7 +437,7 @@
|
|||
if (isNaN(heightVal)) {
|
||||
heightVal = 512;
|
||||
}
|
||||
var strengthVal = parseInt($('#inputStrength').val());
|
||||
var strengthVal = parseFloat($('#inputStrength').val());
|
||||
if (isNaN(strengthVal)) {
|
||||
strengthVal = 0.5;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,11 +60,8 @@ class Img2Img:
|
|||
self.__logger.info("current seed: {}".format(seed))
|
||||
|
||||
if isinstance(reference_image, str):
|
||||
reference_image = (
|
||||
base64_to_image(reference_image)
|
||||
.thumbnail((config.get_width(), config.get_height()))
|
||||
.convert("RGB")
|
||||
)
|
||||
reference_image = base64_to_image(reference_image).convert("RGB")
|
||||
reference_image.thumbnail((config.get_width(), config.get_height()))
|
||||
|
||||
result = self.model.img2img_pipeline(
|
||||
prompt=prompt,
|
||||
|
|
|
|||
Loading…
Reference in New Issue