Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,7 +76,7 @@ def preprocess_image(image, std_dev=0.1, downscale_factor=4, target_size=(256, 2
|
|
| 76 |
resized_img = resized_img.astype(np.float32) / 255.0
|
| 77 |
|
| 78 |
# Agregar ruido gaussiano
|
| 79 |
-
noise = np.random.normal(
|
| 80 |
noisy_img = resized_img + noise
|
| 81 |
noisy_img = np.clip(noisy_img, 0, 1)
|
| 82 |
|
|
|
|
| 76 |
resized_img = resized_img.astype(np.float32) / 255.0
|
| 77 |
|
| 78 |
# Agregar ruido gaussiano
|
| 79 |
+
noise = np.random.normal(0.3, std_dev, resized_img.shape)
|
| 80 |
noisy_img = resized_img + noise
|
| 81 |
noisy_img = np.clip(noisy_img, 0, 1)
|
| 82 |
|