83d02d08feabaca88b65875318cb79a5e9e7b9c4,src/generate_class_specific_samples.py,ClassSpecificImageGeneration,generate,#ClassSpecificImageGeneration#,32
Before Change
// Recreate image
self.created_image = recreate_image(self.processed_image)
// Save image
cv2.imwrite("../generated/c_specific_iteration_"+str(i)+".jpg", self.created_image)
return self.processed_image
if __name__ == "__main__":
After Change
// Update image
optimizer.step()
// Recreate image
self.created_image = recreate_image(self.processed_image)
if i % 10 == 0:
// Save image
im_path = "../generated/c_specific_iteration_"+str(i)+".jpg"
save_image(self.created_image, im_path)
return self.processed_image
if __name__ == "__main__":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
Instances
Project Name: utkuozbulak/pytorch-cnn-visualizations
Commit Name: 83d02d08feabaca88b65875318cb79a5e9e7b9c4
Time: 2018-11-17
Author: utku.ozbulak@gmail.com
File Name: src/generate_class_specific_samples.py
Class Name: ClassSpecificImageGeneration
Method Name: generate
Project Name: utkuozbulak/pytorch-cnn-visualizations
Commit Name: 83d02d08feabaca88b65875318cb79a5e9e7b9c4
Time: 2018-11-17
Author: utku.ozbulak@gmail.com
File Name: src/cnn_layer_visualization.py
Class Name: CNNLayerVisualization
Method Name: visualise_layer_with_hooks
Project Name: utkuozbulak/pytorch-cnn-visualizations
Commit Name: 83d02d08feabaca88b65875318cb79a5e9e7b9c4
Time: 2018-11-17
Author: utku.ozbulak@gmail.com
File Name: src/cnn_layer_visualization.py
Class Name: CNNLayerVisualization
Method Name: visualise_layer_without_hooks