Open Luckyangle1232 opened 3 months ago
还有一个问题,我设置不加载模型,还是会出现找不到'experiments/checkpoints/init_gnn2_hrnetw18_npt512_lm/'的问题,方便也提供一下这个目录下的模型吗
about code_image
:
code_image
should fix the problem. I will also update the codes in this repo.get_fps_points.py
to generate the sampled dense keypoints (or use the ones provided in checkerpose/datasets/BOP_DATASETS/lm/fps_202212
). Besides, you may need to download VOCdevkit images for replacing the background of LM images (see details in GDR-Net). I generate the ground truth binary codes on the fly during training instead of storing GT files and loading. about --load_checkpoint
pretrain.py
or pretrain_lm.py
. The pretrain scripts update the weights of low level network layers (maybe a more proper name is the first stage of the two-stage training process).pretrain.py
或者 pretrain_lm.py
得到的init model。I have modified the LM dataset codes and tested by myself. The newest version is uploaded. Please check it, thanks!
I have modified the LM dataset codes and tested by myself. The newest version is uploaded. Please check it, thanks!
Thanks for your reply! The code is workable. But I meet a new problem.
2024-03-31 11:26:21.296922 hr18GNN2_res6_gnn3Skip_mlpQuery_lm iteration_step: 0 train_stage: 3 loss_roi_bit: 0.004630818031728268 loss_proj_bit_x: 0.3828274607658386 loss_proj_bit_y: 0.38404062390327454 loss_seg_visib: 0.49522408843040466 loss_seg_full: 0.5205239057540894 loss: 1.7872469425201416 time: 1.340477s est: 44.682h
0%| | 0/1679 [00:00<?, ?it/s]test dataset
0%| | 0/1679 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/media/zhujq/deepl/6Dpose/CheckerPose-main/checkerpose/train_lm.py", line 393, in
I just rerun the codes but I did not encounter this issue.
Based on the provided information, the training process is fine but the periodic testing is problematic.
The error message looks like key error of the vertices_dict
, which is created as
https://github.com/RuyiLian/CheckerPose/blob/fb725bed2a9eb6c3646c476c017d9ad00aa63a28/checkerpose/train_lm.py#L109-L112
so it should accept 1 as a key.
Maybe you could try to print the dict keys and see what happens.
I just rerun the codes but I did not encounter this issue. Based on the provided information, the training process is fine but the periodic testing is problematic. The error message looks like key error of the
vertices_dict
, which is created asso it should accept 1 as a key. Maybe you could try to print the dict keys and see what happens.
把这段代码注释解开就可以正常运行了,感谢您的帮助!!!!
I just rerun the codes but I did not encounter this issue. Based on the provided information, the training process is fine but the periodic testing is problematic. The error message looks like key error of the
vertices_dict
, which is created as https://github.com/RuyiLian/CheckerPose/blob/fb725bed2a9eb6c3646c476c017d9ad00aa63a28/checkerpose/train_lm.py#L109-L112so it should accept 1 as a key. Maybe you could try to print the dict keys and see what happens.
把这段代码注释解开就可以正常运行了,感谢您的帮助!!!!
另外还有一个问题,我在没有安装依赖库Progressive-X下现在代码是可以正常使用的,我可以问一下这个库有什么作用吗,或者他在哪里发挥作用
我们的方法是个两阶段的方法,第一阶段是用网络估计3D-2D对应关系(通过keypoint localization实现),第二阶段是用现有的PnP solver求解pose。在上面 train_lm.py
为了节省时间测试过程中的PnP solver是用的opencv的,Progressive-X是另一种PnP solver,速度慢但是一般来说估计的更准确,在 test_lm.py
里可以选择调用 progressive-x (命令行参数 --use_progressivex
)。
我们的方法是个两阶段的方法,第一阶段是用网络估计3D-2D对应关系(通过keypoint localization实现),第二阶段是用现有的PnP solver求解pose。在上面
train_lm.py
为了节省时间测试过程中的PnP solver是用的opencv的,Progressive-X是另一种PnP solver,速度慢但是一般来说估计的更准确,在test_lm.py
里可以选择调用 progressive-x (命令行参数--use_progressivex
)。
明白了,大神,再问一个,你这是使用的纯RGB图出的效果,我想测试一下您的代码在RGB-D图下的性能,请请问您的LM和YCB数据集读取代码有没有读取点云的或者有关参考,我自己写了一个读取的稍微有点问题
我从GDRNet中下载的lm_imgn 中没有code_images模块,作者能否提供一个完整的lm_imgn库