TFFRCNN icon indicating copy to clipboard operation
TFFRCNN copied to clipboard

demo.py with KITTI dataset error

Open yhhwangRTOS opened this issue 7 years ago • 2 comments

Hi

I trained KITTI dataset and got some ckpt files The problem is when I try to test using demo.py, there's some error like this


InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [21] rhs shape= [4] [[Node: save/Assign_2 = Assign[T=DT_FLOAT, _class=["loc:@cls_score/biases"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/gpu:0"](cls_score/biases, save/RestoreV2_2/_5)]]

I already saw faster_rcnn_kitti.yml file. In that file, NCLASSES is 4 But in the demo.py, the number of declared CLASS is 21 (like car, airplane, cat, etc...) So I changed it to 4 but it didn't work.

Is there anybody how to solve this problem...?

All I want to do is just test the image using ckpt file which trained using KITTI data set

Thanks

yhhwangRTOS avatar Nov 04 '17 05:11 yhhwangRTOS

Hi,Have you solved your problem?

woxihuanchirou avatar Mar 25 '18 06:03 woxihuanchirou

yes I solved that Thx!

yhhwangRTOS avatar Mar 25 '18 10:03 yhhwangRTOS