-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Stanford cars download url is broken - HTTP 404 #7545
Comments
It's not just the download, the whole website seems to be down: https://ai.stanford.edu/~jkrause/cars/car_dataset.html. Googling for this dataset reveals that this is still the "current" address. Meaning, maybe this is temporary and will come back up. We should monitor this and maybe reach out to the authors in case this persists. Wondering why our download tests didn't catch this 🤔 |
I met the same problem. And I have not find a mirror link to download link. Hope them can fix it as soon as possible. |
For people looking for a quick solution: You can download the dataset from kaggle and use the following class to create a torch Dataset.
|
Thank you @IamMohitM, we can use
Confirm dataset structures are as follows:
|
But the annotation of the test set is still not available. |
A cars_test_annos_withlabels.mat should be placed into base folder。(something like “stanford_cars\cars_test_annos_withlabels.mat”) |
@iamchenxin Just to clarify what you mean: The original file and I'm sure that other code examples also load this file as part of their input. So to summarize, we need:
The directory structure you provided earlier works well once we add the missing file!
If the script/notebook we're writing the code in is at the same directory level as the
Hope that this helps! @pgsld23333 @IamMohitM let me know if I missed something. |
thanks a lot! it's really helpful |
@pmeier Its been almost a year and this hasn't been remedied yet. Whats the plan going forward? removing it or keeping it broken like this? |
Thanks all for the reports. Unfortunately the URL has been consistently broken for a while now, so we decided to disable the (broken) download functionality. Passing These changes will be effective from torchvision 0.18, aimed to be released in April 2024. I'll close this issue, but #7545 (comment) is still relevant until further notice. |
Looks like the existing datasets are either missing some files or not fully conforming to the torchvision's required structures. So a lot of upfront manual work is needed every time to get ready. To tackle this issue, a new dataset is created on Kaggle that is compatible with the latest version of torchvision: https://www.kaggle.com/datasets/rickyyyyyyy/torchvision-stanford-cars The dataset can be setup with import kaggle
# you need to configure API key through https://www.kaggle.com/docs/api
kaggle.api.dataset_download_files('rickyyyyyyy/torchvision-stanford-cars', path=YOUR_DATA_PATH, unzip=True) And then can be used by torchvision import torchvision
data = torchvision.datasets.StanfordCars(root=YOUR_DATA_PATH, download=False) |
Hi, and thanks, @rygx, for your help! I could put this version of the dataset on Zenodo (giving credits to the original owners) to make it accessible directly from a URL without authentication or additional dependency so as to fix this problem completely. Let me know if that would be helpful. Have a great day. |
Loading the dataset was not straightforward for me, but I eventually got something to work. I downloaded this version from kagglehub and saved them in my google drive:
This will plot the images:
This will load the train and test sets:
|
🐛 Describe the bug
The Stanford Cars dataset is not available on the url from source code
https://pytorch.org/vision/main/_modules/torchvision/datasets/stanford_cars.html
Reproduce error:
I get the following error
Versions
PyTorch version: 2.0.0
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A
OS: macOS 13.2.1 (x86_64)
GCC version: Could not collect
Clang version: 14.0.0 (clang-1400.0.29.202)
CMake version: version 3.19.8
Libc version: N/A
Python version: 3.10.10 (main, Feb 16 2023, 02:58:25) [Clang 14.0.0 (clang-1400.0.29.202)] (64-bit runtime)
Python platform: macOS-13.2.1-x86_64-i386-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Versions of relevant libraries:
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.24.3
[pip3] torch==2.0.0
[pip3] torchaudio==2.0.1
[pip3] torchvision==0.15.1
[conda] blas 1.0 mkl
[conda] mkl 2019.4 233
[conda] mkl-service 2.3.0 py38h9ed2024_0
[conda] mkl_fft 1.2.1 py38ha059aab_0
[conda] mkl_random 1.1.1 py38h959d312_0
[conda] numpy 1.20.1 pypi_0 pypi
[conda] numpy-base 1.19.2 py38hcfb5961_0
[conda] numpydoc 1.1.0 pyhd3eb1b0_1
[conda] pytorch3d 0.4.0 pypi_0 pypi
[conda] torch 1.9.0 pypi_0 pypi
cc @pmeier
The text was updated successfully, but these errors were encountered: