Bmo411 commited on
Commit
211f5d5
·
verified ·
1 Parent(s): 19e9e99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(1, std_dev, resized_img.shape)
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