Open Leozyc-waseda opened 1 year ago
Here's what's working in our DeepFake Detection codebase: MODEL_VIS: ENABLE: True MODEL_WEIGHTS: True # Set to True to visualize model weights. ACTIVATIONS: True # Set to True to visualize feature maps. INPUT_VIDEO: True # Set to True to visualize the input video(s) for the corresponding feature maps. LAYER_LIST: ['patch_embed/proj'] # List of layer names to visualize weights and activations for. GRAD_CAM: ENABLE: True USE_TRUE_LABEL: False LAYER_LIST: ['patch_embed/proj'] # List of CNN layers to use for Grad-CAM visualization method.
You might need a couple of tweaks in the visualizer, but this layer_list produces decent GradCAM results.
I'm planning to train and visualize using Mvit and Mvitv2. Does anyone know how to write the grad-cam section for Mvit and MvitV2?
For reference, this is how it's done for SlowFast: