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

Error in mtrand.RandomState.choice #4

Open
hanshong opened this issue Dec 19, 2019 · 1 comment
Open

Error in mtrand.RandomState.choice #4

hanshong opened this issue Dec 19, 2019 · 1 comment

Comments

@hanshong
Copy link

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.

@LordLiang
Copy link
Owner

LordLiang commented Dec 19, 2019 via email

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

2 participants