-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
5k.txt / 5k.part file extension #11
Comments
i find why there is such a problem,that is in ubuntu16.04 i should use test_path = '~/coco/images/5k.txt' ###row 31 |
Ah yes, be careful of the extension used here. COCO naturally downloads as Lines 27 to 30 in 68de92f
If you are using Lines 2 to 3 in 68de92f
|
I have tryed to download the coco dataset, but occured a problem. How I can solve it? Thank you |
thanks! @glenn-jocher |
This solution still does not resolve the same problem I'm having. |
The difficulty I'm having is that there are many hard coded directory paths in Also, the platform check in |
I've resolved this issue now:
|
when i run :
~/PycharmProjects/yolov3-master$ python test.py -weights_path checkpoints/latest.pt
there is error in dataset.py:
img_all = np.stack(img_all)[:, :, :, ::-1].transpose(0, 3, 1, 2) #row 218(dataset.py)
Traceback (most recent call last):
File "test.py", line 59, in
for batch_i, (imgs, targets) in enumerate(dataloader):
File "/home/chenfei/PycharmProjects/yolov3-master/utils/datasets.py", line 218, in next
img_all = np.stack(img_all)[:, :, :, ::-1].transpose(0, 3, 1, 2) # BGR to RGB and cv2 to pytorch
File "/home/chenfei/anaconda3/lib/python3.6/site-packages/numpy/core/shape_base.py", line 349, in stack
raise ValueError('need at least one array to stack')
ValueError: need at least one array to stack
can you help me ?
The text was updated successfully, but these errors were encountered: