diff --git a/templates/index.html b/templates/index.html
index 3808e15..3d6cb4c 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -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;
}
diff --git a/utilities/img2img.py b/utilities/img2img.py
index 4178e38..5288439 100644
--- a/utilities/img2img.py
+++ b/utilities/img2img.py
@@ -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,