ethanweber / nerfbusters

Nerfbusters project
MIT License
215 stars 15 forks source link

shapenet dataset error #2

Closed ssoiy closed 9 months ago

ssoiy commented 1 year ago

hi, when i train this code, i got this error "ValueError : string is not a file: /path/ShapeNetCore.v2/04379243/models/model_normalized.obj" at "cubes3d.py : 131" trimesh.load function

should i change some format of shapenet?

and Do I need to create a train_labels.txt to train the shapenetcore.v2 dataset? there's no train_labels.txt in shapenet dataset

thank you

ethanweber commented 1 year ago

Hi @ssoiy, I fixed the harded file path in our code. Now you can put the ShapeNetCore.v2 folder (or symlink) in the local data folder, as described in the README.md now here.

There are instructions for how to download the shapenet dataset, which you can use the command wget https://shapenet.cs.stanford.edu/shapenet/obj-zip/ShapeNetCore.v2.zip --no-check-certificate for. Feel free to reopen this issue if your problems persist. Thanks!

Harr7y commented 10 months ago

Sorry, I still can not solve this problem, can you give some advices?

File "/home/nerfbusters/nerfbusters/data_modules/datamodule.py", line 47, in setup self.train_dataset = Cubes3D( File "/home/nerfbusters/nerfbusters/data_modules/cubes3d.py", line 79, in init with open(os.path.join(path, "train_labels.txt"), "r") as f:

FileNotFoundError: [Errno 2] No such file or directory: 'data/ShapeNetCore.v2/train_labels.txt'

ethanweber commented 10 months ago

Hm, so what is inside your folder data/ShapeNetCore.v2? Maybe you need to symlink it to where you installed ShapeNet?

Harr7y commented 10 months ago

Thanks for your reply. The data/ShapeNetCore.v2 is the dataset downloaded following the link provided in the nerfbusters. (https://shapenet.cs.stanford.edu/shapenet/obj-zip/ShapeNetCore.v2.zip)

1703599363851

According to the code, I think maybe the "train_labels.txt" is missed.

ethanweber commented 10 months ago

Hey, hm, I'm not too sure why it's not there. Here I've uploaded a copy of that file for you. Maybe that will help you?

train_labels.txt

Harr7y commented 10 months ago

Thanks a lot~ :pray::pray: