Skip to content

Commit c8c862d

Browse files
clean up comments
1 parent ec1021a commit c8c862d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

activation_max_vis_class.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ def vis_cnn_layer(self):
5252
# initiate hook function
5353
self.hook_cnn_layer()
5454
# create a noisy image
55-
# noisy_img = np.random.randint(125, 190, (224, 224, 3), dtype='uint8')
56-
noisy_img = np.uint8(np.random.uniform(150, 180, (224, 224, 3)))
55+
noisy_img = np.random.randint(125, 190, (224, 224, 3), dtype='uint8')
5756
# add dimension and activate requires_grad on tensor
5857
processed_image = process_image(noisy_img).unsqueeze_(0).requires_grad_()
5958
# define optimizer

0 commit comments

Comments
 (0)