open-mmlab / mmaction2

OpenMMLab's Next Generation Video Understanding Toolbox and Benchmark
https://mmaction2.readthedocs.io
Apache License 2.0
4.21k stars 1.23k forks source link

vis_cam.py not work in timesformer #2835

Open whiteswordLI opened 5 months ago

whiteswordLI commented 5 months ago

Branch

main branch (1.x version, such as v1.0.0, or dev-1.x branch)

Prerequisite

Environment

Pytorch version: 1.9.0+cu111 CUDA Version: 11.1

Describe the bug

this is one of orders i tried.

python tools/visualizations/vis_cam.py work_dirs/timesformer/answer1/timesformer.py \ work_dirs/timesformer/answer1/best_acc_top1_epoch_972.pth data/convengesoft/data1/train/007.avi \ --target-layer-name backbone/transformer_layers/layers/0/norms/0 \ --out-filename cam/cam.gif

I have tried to change all layers'name i can image,but nothing worked.

most errors like below: image

Reproduces the problem - code sample

No response

Reproduces the problem - command or script

No response

Reproduces the problem - error message

No response

Additional information

I want to know how to fix the code or how to fix the order to get the answer plz help me /cry/cry

whiteswordLI commented 5 months ago

and sometimes the error just like below: image