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

mismatch file format in GQN #15

Open
tatsuhiko-inoue opened this issue Feb 15, 2019 · 2 comments
Open

mismatch file format in GQN #15

tatsuhiko-inoue opened this issue Feb 15, 2019 · 2 comments

Comments

@tatsuhiko-inoue
Copy link

GQN/dataset/convert2torch.py generate data files compressed by gzip.
But GQNDataset class expect uncompressed files.

The following error occurred when I executed GAN/train.py with the directory generated by convert2torch.py.

Traceback (most recent call last):
  File "train.py", line 94, in <module>
    x_data_test, v_data_test = next(iter(test_loader))
  File "/home/hoge/venv/pytorch-py36-cuda9/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 615, in __next__
    batch = self.collate_fn([self.dataset[i] for i in indices])
  File "/home/hoge/venv/pytorch-py36-cuda9/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 615, in <listcomp>
    batch = self.collate_fn([self.dataset[i] for i in indices])
  File "/home/hoge/work/pixyzoo/GQN/gqn_dataset.py", line 32, in __getitem__
    data = torch.load(scene_path)
  File "/home/hoge/venv/pytorch-py36-cuda9/lib/python3.6/site-packages/torch/serialization.py", line 365, in load
    f = open(f, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'dataset/rooms_ring_camera-torch/train/1414.pt'
@TMats
Copy link
Collaborator

TMats commented Feb 15, 2019

Hi, doesn't the uncompressing command gzip -d *.gz help?

@tatsuhiko-inoue
Copy link
Author

Thank you for your reply!

By uncompressing the dataset files, I was able to run train.py.
But is it okay that the data format does not match?

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