aaronWool / rcvpose

(ECCV 22 Oral)Vote from the Center: 6 DoF Pose Estimation in RGB-D Images by Radial Keypoint Voting
GNU General Public License v3.0
49 stars 9 forks source link

Reference before assignment #8

Open greinerth opened 2 years ago

greinerth commented 2 years ago

https://github.com/aaronWool/rcvpose/blob/e25ff74cc02f3e70fcd2901fd0568f5c0be90022/AccumulatorSpace.py#L518

lin-fangzhou commented 1 year ago

May I ask if you have resolved this issue, which seems to be the same as what I encountered?

(venv310) blab@blab-server:~/pporzz/rcvpose$ python main.py --root_dataset="/home/bimlab/pporzz/rcvpose/Datasets/6dPoseData/" --mode=test --demo_mode False ape Traceback (most recent call last): File "/home/bimlab/pporzz/rcvpose/main.py", line 70, in trainer = Trainer(data, opts, vis) File "/home/bimlab/pporzz/rcvpose/train.py", line 25, in init self.Test() File "/home/bimlab/pporzz/rcvpose/train.py", line 194, in Test estimate_6d_pose_lm(self.opts) File "/home/bimlab/pporzz/rcvpose/AccumulatorSpace.py", line 518, in estimate_6d_pose_lm model_path = opts.model_dir + class_name+"_pt"+str(keypoint_count)+".pth.tar" UnboundLocalError: local variable 'keypoint_count' referenced before assignment

tomole444 commented 1 year ago

The same here