Skip to content
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

The dimensions of the parameters of the trained and tested models do not match #21

Open
DanZhang123 opened this issue Oct 12, 2019 · 3 comments

Comments

@DanZhang123
Copy link

hello:
Since I'm new to this, I have a problem with testing the pascal VOC --> clipart and don,t know where to start:

    While copying the parameter named "RCNN_cls_score.weight", whose dimensions in the model are torch.Size([21, 4224]) and whose dimensions in the checkpoint are torch.Size([21, 4096]).
    While copying the parameter named "RCNN_bbox_pred.weight", whose dimensions in the model are torch.Size([84, 4224]) and whose dimensions in the checkpoint are torch.Size([84, 4096]).

Looking forward to your reply. Thank you very much.

@mrbulb
Copy link

mrbulb commented May 14, 2020

@DanZhang123 hello, have you solved this problem?

@ygzhu
Copy link

ygzhu commented Dec 19, 2020

hello, how do you solve this problem?

@ygzhu
Copy link

ygzhu commented Dec 19, 2020

hello, how do you solve this problem?

ok,while you run the script
CUDA_VISIBLE_DEVICES=$GPU_ID python test_net_global_local.py \ --dataset target_dataset --net vgg16 \ --cuda --lc --gc --load_name path_to_model
remove --ls --gc, it will work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants