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

Validate the model #83

Closed
eric85810 opened this issue Mar 25, 2020 · 6 comments
Closed

Validate the model #83

eric85810 opened this issue Mar 25, 2020 · 6 comments

Comments

@eric85810
Copy link

Hello, would you like to ask how do you perform a verification test on the trained model and what kind of file is the test, is it .off or .points, or an octree file?
I want to use your model for pre-train, but I have the following problem:

Cannot copy param 0 weights from layer 'ip2'; shape mismatch. Source param shape is 40 128 (5120); target param shape is 5 128 (640). To learn this layer's parameters from scratch rather than copying from a saved net, rename the layer.

你好,想请问您如何对训练好的模型进行验证测试,测试的档案类别为何,是.off还是.points,或是octree档

@wang-ps
Copy link
Contributor

wang-ps commented Mar 25, 2020

  1. Run the following command to test:

    python run_cls.py configs/cls_octree_test.yaml
    
  2. For the problem Cannot copy param 0 weights from layer 'ip2'; shape mismatch. Source param shape is 40 128 ... , the reason is that when training on ModelNet40, the dimension of the last FC is 40x128 for the 40-category classification, but the FC of your network is 5x128 for the 4-category classification. So you have to rename the layer's parameters to train it from scratch.

  3. 测试的时候数据处理跟训练一样,需要将.off转换为.points或者.octree

@eric85810
Copy link
Author

eric85810 commented Mar 26, 2020 via email

@wang-ps wang-ps closed this as completed Mar 26, 2020
@eric85810
Copy link
Author

eric85810 commented May 27, 2020 via email

@chenteng1998
Copy link

您好
当运行以下命令进行测试时:python run_cls.py configs/cls_octree_test.yaml
得到如下反馈
Traceback (most recent call last):
File "run_cls.py", line 41, in
FLAGS = parse_args()
File "O-CNN-master/tensorflow/script/config.py", line 139, in parse_args
_update_config(FLAGS, args)
File "O-CNN-master/tensorflow/script/config.py", line 108, in _update_config
FLAGS.merge_from_list(args.opts)
File "anaconda3/envs/tensorflow/lib/python3.7/site-packages/yacs/config.py", line 226, in merge_from_list
cfg_list
File "anaconda3/envs/tensorflow/lib/python3.7/site-packages/yacs/config.py", line 521, in _assert_with_logging
assert cond, msg
AssertionError: Override list has odd length: ['configs/cls_octree_test.yaml']; it must be a list of pairs
请问该如何解决 谢谢!

@wang-ps
Copy link
Contributor

wang-ps commented Oct 28, 2020

@chenteng1998 你运行的命令缺少关键字--config, 运行如下命令试一试:

python run_cls.py --config configs/cls_octree_test.yaml

@chenteng1998
Copy link

@ chenteng1998 你运行的命令关键字--config,运行如下命令试一试:

python run_cls.py --config configs/cls_octree_test.yaml

谢谢!!我的问题已经解决

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