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

hi, I,meet problem when run train.py. Read PCD failed: unable to open file: ./datasets/tless/models/1.pcd #4

Open
yuheyuan opened this issue Jul 23, 2022 · 3 comments

Comments

@yuheyuan
Copy link

yuheyuan commented Jul 23, 2022

When I run

$ python train.py --loss_type GADD

it will occours

[Open3D WARNING] Read PCD failed: unable to open file: ./datasets/tless/models/1.pcd

I only down load the t-less datasets, and follow your step
But I find there exactly no exit pcd files. It only exits ply files.
So how can I solve it.

here is my run results

init gps:0
init gps:1
[Open3D WARNING] Read PCD failed: unable to open file: ./datasets/tless/models/1.pcd
utput:  1 0 3
[Open3D WARNING] Read PCD failed: unable to open file: ./datasets/tless/models/1.pcd
utput:  1 0 3
Traceback (most recent call last):
  File "train.py", line 474, in <module>
    main()
  File "train.py", line 115, in main
    mp.spawn(per_processor, nprocs=opt.gpu_number, args=(opt,))
  File "/home/ailab/anaconda3/envs/yy_ES6D/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 199, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
  File "/home/ailab/anaconda3/envs/yy_ES6D/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 157, in start_processes
    while not context.join():
  File "/home/ailab/anaconda3/envs/yy_ES6D/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 118, in join
    raise Exception(msg)
Exception: 

-- Process 1 terminated with the following error:
Traceback (most recent call last):
  File "/home/ailab/anaconda3/envs/yy_ES6D/lib/python3.6/site-packages/torch/multiprocessing/spawn.py", line 19, in _wrap
    fn(i, *args)
  File "/media/ailab/data/yy/ES6D-master/train.py", line 231, in per_processor
    dataset = pose_dataset('train', opt.num_points, opt.dataset_root, True, opt.noise_trans)
  File "/media/ailab/data/yy/ES6D-master/datasets/tless/tless_dataset.py", line 62, in __init__
    xyz_ids = farthest_point_sample(raw_xyz, num_pt).cpu().numpy()
  File "/media/ailab/data/yy/ES6D-master/datasets/tless/tless_dataset.py", line 223, in farthest_point_sample
    farthest = torch.randint(0, N, (B,), dtype=torch.long).to(device)
RuntimeError: random_ expects 'from' to be less than 'to', but got from=0 >= to=0
@yuheyuan yuheyuan changed the title Read PCD failed: unable to open file: ./datasets/tless/models/1.pcd I,meet problem when run train.py. Read PCD failed: unable to open file: ./datasets/tless/models/1.pcd Jul 23, 2022
@yuheyuan yuheyuan changed the title I,meet problem when run train.py. Read PCD failed: unable to open file: ./datasets/tless/models/1.pcd hi, I,meet problem when run train.py. Read PCD failed: unable to open file: ./datasets/tless/models/1.pcd Jul 23, 2022
@yuheyuan
Copy link
Author

Did I miss download something ? I truly download t-less models.

@GANWANSHUI
Copy link
Owner

Hi, we downsample the ply files into PCB to reduce the computational cost. I have uploaded the PCB model to: https://www.dropbox.com/sh/zxq5lx71zpq4nts/AAALVgeSvszpHEy8CUBr8iala?dl=0. Thanks a lot for the reminder!

@yuheyuan
Copy link
Author

Hi, we downsample the ply files into PCB to reduce the computational cost. I have uploaded the PCB model to: https://www.dropbox.com/sh/zxq5lx71zpq4nts/AAALVgeSvszpHEy8CUBr8iala?dl=0. Thanks a lot for the reminder!

oh, I success . Thank you

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