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

Downloading Trek150 #6

Open
MsAnitaAli opened this issue May 27, 2024 · 5 comments
Open

Downloading Trek150 #6

MsAnitaAli opened this issue May 27, 2024 · 5 comments

Comments

@MsAnitaAli
Copy link

As indicated in ReadMe that
The full TREK-150 dataset can be built just by running

pip install got10k
git clone https://github.com/matteo-dunnhofer/TREK-150-toolkit
cd TREK-150-toolkit
python download.py

I expect that it will download video sequences along with annotations, but it terminates by simply saying this.
Checking and downloading TREK-150. This process might take a while...
100% [..........................................................................] 1909911 / 1909911Processing video sequence P03-P03_02-612 [1/150]

    Extracting annotation to ./TREK-150...

Traceback (most recent call last):
File "C:\Users\Administrator\desktop\githubclones\trek150\trek-150-toolkit\download.py", line 3, in
dset = TREK150('./TREK-150')
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\desktop\githubclones\trek150\trek-150-toolkit\toolkit\datasets\trek150.py", line 28, in init
self._download(self.root_dir)
File "C:\Users\Administrator\desktop\githubclones\trek150\trek-150-toolkit\toolkit\datasets\trek150.py", line 122, in _download
frame_idxs = np.loadtxt(os.path.join(seq_dir, 'frames.txt'), delimiter='\n', dtype=np.uint64)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ProgramData\anaconda3\Lib\site-packages\numpy\lib\npyio.py", line 1373, in loadtxt
arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ProgramData\anaconda3\Lib\site-packages\numpy\lib\npyio.py", line 1016, in _read
arr = _load_from_filelike(
^^^^^^^^^^^^^^^^^^^^
TypeError: control character 'delimiter' cannot be a newline (\r or \n).

Issue 1:
It just downloads information about 1 video ( P03-P03_02-612).
Issue 2:
It is just downloading annotations, not the videos.

Kindly help me.

@MsAnitaAli
Copy link
Author

Although, I have alternatively downloaded it from VS code , but still no video sequence is downloaded. Only annotations and meta data have been downloaded.

@matteo-dunnhofer
Copy link
Owner

That error is probably related to a newer version of numpy. Try to downgrade numpy to a previous version.

@MsAnitaAli
Copy link
Author

MsAnitaAli commented May 30, 2024

@matteo-dunnhofer
Thank you so much. but I have not created any virtual environment for downloading data. I will try it from venv. Can you mention specific older numpy version?

@matteo-dunnhofer
Copy link
Owner

Code should run fine with a numpy version lower than 1.23.0.

@MsAnitaAli
Copy link
Author

@matteo-dunnhofer
Thank you so much . I will try and update you. I will close the issue in case of success.

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