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

errors of running SVR test inference #23

Open
Bingoang opened this issue Nov 7, 2020 · 8 comments
Open

errors of running SVR test inference #23

Bingoang opened this issue Nov 7, 2020 · 8 comments
Labels
enhancement New feature or request

Comments

@Bingoang
Copy link

Bingoang commented Nov 7, 2020

Hi,Julian

I really appreciate your great work!
I want to run the SVR test inference, but met some problems:
I downloaded your SVR trained model "checkpoint_epoch_6.tar" , and the input data "test_inference_example".
And I make the folder "if-net-master/experiments/iPC3000_dist-0.5_0.5_sigmas-0.2_0.015_v256_mSVR/checkpoints", and put the "checkpoint_epoch_6.tar" "BMan0201-HD2-O04P05-S_3DSV_H250_W250_res256.npz" "BMan0201-HD2-O04P05-S_3DSV_H250_W250_res256.off" all in the folder.
Then I run the command:
python generate.py -pointcloud -pc_samples 3000 -std_dev 0.2 0.015 -res 256 -m SVR -checkpoint 6 -batch_points 100000
But something goes wrong:

Loaded checkpoint from: /home/ang/if-net-master/models/../experiments/iPC3000_dist-0.5_0.5_sigmas-0.2_0.015_v256_mSVR/checkpoints/checkpoint_epoch_6.tar
experiments/iPC3000_dist-0.5_0.5_sigmas-0.2_0.015_v256_mSVR/evaluation_6_@256/
<torch.utils.data.dataloader.DataLoader object at 0x7f33bc5d7dd0>
0it [00:00, ?it/s]
Traceback (most recent call last):
  File "generate.py", line 63, in <module>
    gen_iterator(out_path, dataset, gen)
  File "/home/ang/if-net-master/generation_iterator.py", line 29, in gen_iterator
    for i, data in tqdm(enumerate(loader)):
  File "/home/ang/anaconda3/envs/if-net/lib/python3.7/site-packages/tqdm/std.py", line 1165, in __iter__
    for obj in iterable:
  File "/home/ang/anaconda3/envs/if-net/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 560, in __next__
    batch = self.collate_fn([self.dataset[i] for i in indices])
  File "/home/ang/anaconda3/envs/if-net/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 560, in <listcomp>
    batch = self.collate_fn([self.dataset[i] for i in indices])
  File "/home/ang/if-net-master/models/data/voxelized_data_shapenet.py", line 55, in __getitem__
    occupancies = np.unpackbits(np.load(voxel_path)['compressed_occupancies'])
  File "/home/ang/anaconda3/envs/if-net/lib/python3.7/site-packages/numpy/lib/npyio.py", line 422, in load
    fid = open(os_fspath(file), "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'shapenet/data//04256520/8918d572cff6b15df36ecf951968a8b0/voxelized_point_cloud_256res_3000points.npz'

I'm really new to this, and I hope you can give me some advice. Thanks a lot!
2020-11-07 22-21-29folder
2020-11-07 22-22-04error

@jchibane
Copy link
Owner

jchibane commented Nov 7, 2020

Hi,
you're welcome - looks good.

I'm currently working on a deadline but will come back to you after that.
I'll update the code with logic for loading the checkpoint. Might take until start of December though.

Best,
Julian

@Bingoang
Copy link
Author

Bingoang commented Nov 8, 2020

@jchibane
Sounds great! Thank you for your reply and look forward to your update!!

@kfarivar
Copy link

Hi

I was wondering where I can download the test_inference_example. I only found the pretrained models.

@kfarivar
Copy link

kfarivar commented Nov 19, 2020

I just looked at the generate.py code and saw that the dataset is literally created by a function in the voxelized_data_shapenet.py so it is not surprising it is not working for the single view point cloud input and SVR model. hope we can get the single view human point cloud inference script soon.

@Bingoang
Copy link
Author

Hi

I was wondering where I can download the test_inference_example. I only found the pretrained models.

Oh, there may be something wrong with github. You commented 7 days ago, but it just shows now.╭( T □ T )╮
I downloaded the test_inference_example in this issue:
https://github.com/jchibane/if-net/issues/5

@jchibane
Copy link
Owner

jchibane commented Dec 1, 2020

Hi all,

I gave you some bits and pieces in Issue #27 that should get you started - I'd also like to include official support for own point clouds in IF-Nets. A PR is welcome or I might do it myself at some point when I find some more time hopefully.

Best,
Julian

@jchibane jchibane closed this as completed Dec 1, 2020
@jchibane jchibane reopened this Dec 1, 2020
@jchibane
Copy link
Owner

jchibane commented Dec 1, 2020

Will leave the issue open as a feature request.

@jchibane jchibane added enhancement New feature or request help wanted Extra attention is needed and removed help wanted Extra attention is needed labels Dec 1, 2020
@elhamravanbakhsh
Copy link

I get the same error:
No such file or directory: 'shapenet/data/04379243/e834ef941f7bc9c9e7df9f1005942e3d/boundary_0.1_samples.npz'
or
No such file or directory: 'shapenet/data/02958343/b0945cdea946d1a363c65629bee30ef9/voxelization_32.npy'
while running generate.py or train.py:
FileNotFoundError: [Errno 2] No such file or directory: 'shapenet/data/02958343/25de320e58cb3898f43db49cede9f847/voxelization_32.npy'

Can someone please help me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants