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

测试代码报错 #17

Open
sssssshf opened this issue Dec 5, 2023 · 2 comments
Open

测试代码报错 #17

sssssshf opened this issue Dec 5, 2023 · 2 comments

Comments

@sssssshf
Copy link

sssssshf commented Dec 5, 2023

您好我在用这份代码测试时 出现报错
Using_SYSU30k_Test_Set/test_sysu_combine.py
Traceback (most recent call last):
File "/media/shf/sdb/code/sysu-30k/test_sysu_combine.py", line 291, in
CMC = CMC + CMC_tmp
RuntimeError: The size of tensor a (478731) must match the size of tensor b (9900) at non-singleton dimension 0

@sssssshf
Copy link
Author

sssssshf commented Dec 5, 2023

model.module.model.fc = nn.Sequential()
这种写法是什么意思 啊?

@Wanggcong
Copy link
Collaborator

model.module.model.fc = nn.Sequential() 这种写法是什么意思 啊?

相当于把fc层删掉

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

2 participants