FVNet icon indicating copy to clipboard operation
FVNet copied to clipboard

Error in mtrand.RandomState.choice

Open hanshong opened this issue 5 years ago • 1 comments

I have successfully run preprocess_car_person.py, and generated the .npy in cropped directory. But while I run train.py, it still has a problem like this:

/root/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py:2957: RuntimeWarning: Mean of empty slice. out=out, **kwargs) /root/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py:73: RuntimeWarning: invalid value encountered in true_divide ret, rcount, out=ret, casting='unsafe', subok=False) Traceback (most recent call last): File "train.py", line 385, in train() File "train.py", line 195, in train train_one_epoch(sess, ops, train_writer) File "train.py", line 235, in train_one_epoch get_batch(TRAIN_DATASET, train_idxs, start_idx, end_idx, NUM_CHANNEL) File "/home/FVNet/est-kittinet/kitti/kitti_dataset.py", line 113, in get_batch sample = dataset[idxs[(i + start_idx) % num]] File "/home/FVNet/est-kittinet/kitti/kitti_dataset.py", line 47, in getitem replace=(object_rect.shape[0] < self.num_point)) File "mtrand.pyx", line 1120, in mtrand.RandomState.choice ValueError: a must be greater than 0

Do you have met the problem before? Should I normalize some data? Hope for help, thanks.

hanshong avatar Dec 19 '19 03:12 hanshong

you need to filter some samples which have on points, I will submit the code for filtering today...

---Original--- From: "hanshong"<[email protected]> Date: Thu, Dec 19, 2019 11:34 AM To: "LordLiang/FVNet"<[email protected]>; Cc: "Subscribed"<[email protected]>; Subject: [LordLiang/FVNet] Error in mtrand.RandomState.choice (#4)

I have successfully run preprocess_car_person.py, and generated the .npy in cropped directory. But while I run train.py, it still has a problem like this:

/root/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py:2957: RuntimeWarning: Mean of empty slice. out=out, **kwargs) /root/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py:73: RuntimeWarning: invalid value encountered in true_divide ret, rcount, out=ret, casting='unsafe', subok=False) Traceback (most recent call last): File "train.py", line 385, in train() File "train.py", line 195, in train train_one_epoch(sess, ops, train_writer) File "train.py", line 235, in train_one_epoch get_batch(TRAIN_DATASET, train_idxs, start_idx, end_idx, NUM_CHANNEL) File "/home/FVNet/est-kittinet/kitti/kitti_dataset.py", line 113, in get_batch sample = dataset[idxs[(i + start_idx) % num]] File "/home/FVNet/est-kittinet/kitti/kitti_dataset.py", line 47, in getitem replace=(object_rect.shape[0] < self.num_point)) File "mtrand.pyx", line 1120, in mtrand.RandomState.choice ValueError: a must be greater than 0

Do you have met the problem before? Should I normalize some data? Hope for help, thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LordLiang avatar Dec 19 '19 04:12 LordLiang