hjwdzh/PrimitiveNet

Mismatched parameters and an IndexError

Tomoki-0526 opened this issue · 4 comments

There is a problem about mismatched parameters when executing sh scripts/test_scene.sh:
屏幕截图 2022-10-17 113922
I tried solving it by the method found on the Internet that let me ignore the weight and bias using the following code:

checkpoint.pop("linear_semantics.bias")
checkpoint.pop("linear_semantics.weight")

But then I encountered another problem raising an IndexError:
屏幕截图 2022-10-17 114325
How can I handle this? Or if there is another way for the mismatched parameters?

@Tomoki-0526 哥们,作者上传的checkpoint 与代码配置有点出入,你把config/scene.xml 那个 class由10改为2,就正常了

@zuixiaosanlang 我焯,老哥厉害,但是后面这个v_files[ii]越界怎么处理呢

@Tomoki-0526 路径字符串也要改一下,
'../data/Scene/%s_v.txt'

Scene 改为小写的 scene,下载的数据解压后是小写的

这个作者大牛有点马虎

@zuixiaosanlang 老哥救命恩人5555555