Bmo411 commited on
Commit
799b0d3
·
verified ·
1 Parent(s): 168567b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -132,7 +132,7 @@ def preprocess_image(image, std_dev=0.1, downscale_factor=4, target_size=(256, 2
132
  resized_img = resized_img.astype(np.float32) / 255.0
133
 
134
  # Agregar ruido gaussiano
135
- noise = np.random.normal(0, std_dev, resized_img.shape)
136
  noisy_img = resized_img + noise
137
  noisy_img = np.clip(noisy_img, 0, 1)
138
 
 
132
  resized_img = resized_img.astype(np.float32) / 255.0
133
 
134
  # Agregar ruido gaussiano
135
+ noise = np.random.normal(1, std_dev, resized_img.shape)
136
  noisy_img = resized_img + noise
137
  noisy_img = np.clip(noisy_img, 0, 1)
138