-
Notifications
You must be signed in to change notification settings - Fork 927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Major features are extended siamese network support, visualizing histograms and correlation matrices built from activations and weights, extended deconv options, added grayscale support, improved optimize_image and find_max_acts, improved user interface, refactored and fixed bugs #128
Open
arikpoz
wants to merge
107
commits into
yosinski:master
Choose a base branch
from
arikpoz:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Refactored find_max_acts to work with settings file - Moved mean loading to separate function, to be used in find_max_acts - Added parameters caffe_net_raw_scale, caffe_net_image_dims, is_siamese
- Refactored find_max_acts to work with settings file - Moved mean loading to separate function, to be used in find_max_acts - Added parameters caffe_net_raw_scale, caffe_net_image_dims, is_siamese
- convert_label_fb - function to apply on input label, e.g. convert probability into 0/1 categories - layers_for_max_tracker - list of labels used to use in MaxTracker - is_conv_fn - function which decides whether a layer is convolutional given its name - normalize_layer_name_for_max_tracker_fn - function to normalize layer name used in NetMaxTracker - siamese_layer_to_index_of_saved_image_fn - function which selects an image from a siamese input pair - find_max_acts_output_file - location for max tracker output file
…list and get_files_from_siamese_image_list into misc.py
…max_patches.py to work properly on siamese network - handle siamese case where two layers generates activations for same neuron - avoid input duplications while searching for max input images - handle output generation for siamese network with duplicate layers
- added support for siamese networks
… max tracker generates
…twork - added setting to set optimize_image output - added timestamps to log
…ode, currently does nothing
…IMAGES - renamed: layer_print_names to header_print_names, _layers to _headers
…ayer - removed push-channel and push-spatial from settings
- only save the relevant part of the image, according to the receptive field - in siamese network, only save one relevant image - moved caffe_misc module to be able to use it from both max_tracker and optimizer
- added option to show first or all images per neuron
- added option to show score of maximal images
- replaced caffe.io.load_image (which loads images in [0,1] range to cv2_read_file_rgb, which loads them in [0,255] range and is used in all other places in the code - replaced caffe.io.resize_image (which needs images in [0,1] range) with cv2.resize - moved load_imagenet_mean from loaders into caffevis_helper - clean up code around: range_scale, net_channel_swap - removed unused hardcoded functions: hardcoded_get, load_labels, load_trained_net - removed now empty file loaders.py
- added parent children link in layer_def - identify maxout structures - added layer_name_to_def in settings_misc - removed layer_to_tops, layer_to_bottoms - refactored convert_region_dag - renamed is_conv with is_spatial
…work definition to latest
…ry to load offline images - added print in get_files_list - fixed bug in writing force_backward - removed inplace_layers - refactored more
…ptimize_image_push_layers with max_tracker_layers_to_output
- removed optimize_image_output_prefix - replaced max_tracker_output_dir with caffevis_outputs_dir - removed find_max_acts_output_file setting, file name is deduced automatically - renamed caffevis_unit_jpg_dir to caffevis_outputs_dir - added backward compatability hack after removing image class - removed convert_label_fn and image class in info.txt - removed max_tracker_layers_list leftovers from model settings files - changed caffevis_unit_jpg_dir_folder_format == 'max_tracker_output' to be the default - removed caffevis_histograms_format from model settings - removed settings which are the default from model files
- added input file names to second status line - added model name to window title - changed inactivity graph for layer, to activity graph - rearrange help screen - added setting for gpu id - removed is_conv_fn - added helper scripts to run image generation in one line - added code to set batch size to 1 in deepvis ui - show_maximal_score is now default on - deduce automatic default value for caffe_net_channel_swap from network proto - removed caffevis_score_layers setting, value is now deduce automatically
…f big networks (resnet, googlenet) - added limitation in load_image_per_unit() to avoid hanging for loading >1000 images - fixed bug in image_misc resize_without_fit and resize_to_fit
- ignore NANs and added warning - fixed bugs
- added visualization of weights correlation - added #caffevis_gpu_id = 0 to settings_user.py.example
- added caching to file of get_receptive_field results
- fixed white background in some plots
- remove need for base_folder in settings_user since caffe is now a submodule
organized settings for caffenet added files to ignore list removed ugb since it doesn't work
arikpoz
changed the title
Extended Siamese network support, added grayscale support, added activation and weights histograms, extended deconv options, improved optimize_image and find_max_acts, improved user inteface, refactored and fixed bugs
Major features are extended siamese network support, visualizing histograms and correlation matrices built from activations and weights, extended deconv options, added grayscale support, improved optimize_image and find_max_acts, improved user interface, refactored and fixed bugs
Oct 16, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Features
- Siamese network support
- Activation and Weights Histograms
- Added Correlation Visualization
- Improved max tracker
- Improved optimize_image.py
- Other models
- Deconv
- User interface
Updated settings parameters
Refactored
Bug fixes