nerfstudio icon indicating copy to clipboard operation
nerfstudio copied to clipboard

Google Drive Permission Error when running `ns-download-data nerfstudio --capture-name=poster`

Open branyang02 opened this issue 1 year ago • 4 comments

Describe the bug Running ns-download-data nerfstudio --capture-name=poster results in a gdown google drive permission error.

To Reproduce Steps to reproduce the behavior:

  1. Run ns-download-data nerfstudio --capture-name=poster after installation.

Expected behavior Download Data

Screenshots image

branyang02 avatar May 10 '24 01:05 branyang02

Hi, I had the same issue. However, they have updated the link for the poster dataset here: https://github.com/nerfstudio-project/nerfstudio/pull/3045

For convenience, I have posted the Gdrive link here: https://drive.google.com/file/d/1FceQ5DX7bbTbHeL26t0x6ku56cwsRs6t/view?usp=sharing

But if you installed using pip command, this link may not be updated in the files. You will have to manually replace the above link in a file called download_data.py file whose path (atleast in my system!) is: /home/user/miniconda3/envs/nerfstudio/lib/python3.8/site-packages/nerfstudio/scripts/downloads/download_data.py (I used conda here)

Even simpler You can directly download the folder and place it in the data/nerfstudio folder (for me, it was in the home directory itself on Ubuntu).

This solved the issue for me. Hope this helps!

NishanthARao avatar May 11 '24 18:05 NishanthARao

The new Google drive link is the same as what is already in the download_data.py file. I tried updating the link manually but it did not work.

spicelion1802 avatar May 12 '24 21:05 spicelion1802

The above link is different from the link shown in the screenshot. Anyways, can you download the files from the google drive and manually place the "poster" folder in the datasets folder? I think that Gdrive link also has a "_MACOSX" folder, and the code cannot parse it. That solved the error for me.

NishanthARao avatar May 12 '24 21:05 NishanthARao

Other datasets like dozer work but poster does not. I just to get a trial model up and running but atfer downloading the dataset for dozer I run into the following issues when I try to train the model:

$ns-train nerfacto --pipeline.model.predict-normals True --data data/nerfstudio/dozer$

It throws the following error: $OSError: [Errno 22] Invalid argument Traceback (most recent call last): File "", line 1, in File "C:\Users\sr218\anaconda3\envs\nerfstudio\lib\site-packages\multiprocess\spawn.py", line 116, in spawn_main exitcode = _main(fd, parent_sentinel) File "C:\Users\sr218\anaconda3\envs\nerfstudio\lib\site-packages\multiprocess\spawn.py", line 126, in _main self = reduction.pickle.load(from_parent) File "C:\Users\sr218\anaconda3\envs\nerfstudio\lib\site-packages\dill_dill.py", line 289, in load return Unpickler(file, ignore=ignore, **kwds).load() File "C:\Users\sr218\anaconda3\envs\nerfstudio\lib\site-packages\dill_dill.py", line 444, in load obj = StockUnpickler.load(self) _pickle.UnpicklingError: pickle data was truncated Exception ignored in: <function ParallelDataManager.del at 0x0000015E63D83430> Traceback (most recent call last): File "C:\Users\sr218\anaconda3\envs\nerfstudio\lib\site-packages\nerfstudio\data\datamanagers\parallel_datamanager.py", line 339, in del proc.terminate() File "C:\Users\sr218\anaconda3\envs\nerfstudio\lib\site-packages\multiprocess\process.py", line 133, in terminate self._popen.terminate() AttributeError: 'NoneType' object has no attribute 'terminate'$

Any help is appreciated!

spicelion1802 avatar May 12 '24 21:05 spicelion1802