Comments (5)
Hello, did you solve this problem, I also encountered this problem, but my mmcv is 1.x version, it can be used after downgrading to 0.2.10.
from tpn.
I'm observing something similar with test_video.py
:
python test_video.py config_files/sthv2/tsm_tpn.py ckpt/sthv2_tpn.pth --video_file juggling_short.mp4 --rendered_output juggling_short_res.mp4
Error:
The model and loaded state dict do not match exactly
missing keys in source state_dict: necks.aux_head.convs.conv.weight, necks.aux_head.convs.bn.weight, necks.aux_head.convs.bn.bias, necks.aux_head.convs.bn.running_mean, necks.aux_head.convs.bn.running_var, necks.aux_head.fc.weight, necks.aux_head.fc.bias
from tpn.
您好,您解决了这个问题,我也遇到了这个问题,但是我的mmcv是1.x版本,降级到0.2.10后可以使用。
I'm observing something similar with
test_video.py
:python test_video.py config_files/sthv2/tsm_tpn.py ckpt/sthv2_tpn.pth --video_file juggling_short.mp4 --rendered_output juggling_short_res.mp4
Error:
The model and loaded state dict do not match exactly missing keys in source state_dict: necks.aux_head.convs.conv.weight, necks.aux_head.convs.bn.weight, necks.aux_head.convs.bn.bias, necks.aux_head.convs.bn.running_mean, necks.aux_head.convs.bn.running_var, necks.aux_head.fc.weight, necks.aux_head.fc.bias
Thank you very much, I solved this problem, but encountered a new problem:
WARNING - unexpected key in source state_dict: fc.weight, fc.bias
FileExistsError: [Errno 17] File exists: '/home/wang/project/python/TPN-master/chekpoint/sthv2_tpn.pth'
from tpn.
I'm observing something similar with
test_video.py
:python test_video.py config_files/sthv2/tsm_tpn.py ckpt/sthv2_tpn.pth --video_file juggling_short.mp4 --rendered_output juggling_short_res.mp4
Error:
The model and loaded state dict do not match exactly missing keys in source state_dict: necks.aux_head.convs.conv.weight, necks.aux_head.convs.bn.weight, necks.aux_head.convs.bn.bias, necks.aux_head.convs.bn.running_mean, necks.aux_head.convs.bn.running_var, necks.aux_head.fc.weight, necks.aux_head.fc.bias
Hello, I also encountered the same problem, did you solve it?
from tpn.
Aux head is not used during inference time. So you can ignore the error 'missing keys in source state_dict'.
from tpn.
Related Issues (20)
- Could you explain some parameters in code? HOT 2
- About FLOPs of TPN
- Train-val split details for Epic-Kitchen dataset
- Use RWF-2000 to train TPN HOT 1
- I want to know how to down checkpoint HOT 2
- 在PyTorch 1.7下,运行test_video.py报错:RuntimeError: Legacy autograd function with non-static forward method is deprecated. HOT 4
- Is the number of frames used in training and testing the same?
- About data augmentation. HOT 1
- Expected 5-dimensional input for 5-dimensional weight 64 3 1 7 7, but got 4-dimensional input of size [8, 3, 256, 256] instead HOT 2
- cannot import name 'get_trimmed_dataset' from 'mmaction.datasets'
- optimizer must be a dict of torch.optim.Optimizers, but optimizer["type"] is a <class 'str'> HOT 4
- RuntimeError: Legacy autograd function with non-static forward method is deprecated HOT 2
- Why is the training code different from the test code?
- how could i get kinetics400_val_list_rawframes_checked.txt?
- TypeError: save_for_backward can only save variables, but argument 1 is of type int
- RuntimeError: Expected 5-dimensional input for 5-dimensional weight 64 3 1 7 7, but got 4-dimensional input of size [12, 10, 224, 224] instead
- x = self.segmental_consensus.forward(x),
- config file ?
- how to download ckpt HOT 1
- how to solve this problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tpn.