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

Unavailable dataset #13

Open
friedrice231 opened this issue Apr 11, 2024 · 2 comments
Open

Unavailable dataset #13

friedrice231 opened this issue Apr 11, 2024 · 2 comments

Comments

@friedrice231
Copy link

friedrice231 commented Apr 11, 2024

Hello! I tried run_office_home.sh for CDAN_MCC_SDAT and I ran into the error below. Is it possible thtat the download list is outdated? I've tried manually downloading OfficeHome and setting the download boolean in utils.py to False but it doesn't seem to work with raw OfficeHome download. Could you provide more details on the dataset for it?

Downloading image_list
Fail to download image_list.zip from url link https://cloud.tsinghua.edu.cn/f/ca3a3b6a8d554905b4cd/?dl=1
Please check you internet connection.Simply trying again may be fine.

@rangwani-harsh
Copy link
Contributor

rangwani-harsh commented Apr 11, 2024

Hi, I have updated the office-home dataset links, can you pull the latest changes from the library and check again?

@friedrice231
Copy link
Author

Great, the links work now. However, I run into the error below. How do I fix this?

[INFORMATION] The bottleneck dim is 256
lr_bbone: 0.0002
lr_btlnck: 0.002
Traceback (most recent call last):
File "/home/lyeekai/SDAT/examples/cdan_mcc_sdat.py", line 352, in
main(args)
File "/home/lyeekai/SDAT/examples/cdan_mcc_sdat.py", line 158, in main
train(train_source_iter, train_target_iter, classifier, domain_adv, mcc_loss, optimizer, ad_optimizer,
File "/home/lyeekai/SDAT/examples/cdan_mcc_sdat.py", line 219, in train
y, f = model(x)
File "/home/lyeekai/.conda/envs/clip/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/lyeekai/SDAT/examples/common/modules/classifier.py", line 80, in forward
f = self.bottleneck(f)
File "/home/lyeekai/.conda/envs/clip/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/lyeekai/.conda/envs/clip/lib/python3.10/site-packages/torch/nn/modules/container.py", line 204, in forward
input = module(input)
File "/home/lyeekai/.conda/envs/clip/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/home/lyeekai/.conda/envs/clip/lib/python3.10/site-packages/torch/nn/modules/batchnorm.py", line 171, in forward
return F.batch_norm(
File "/home/lyeekai/.conda/envs/clip/lib/python3.10/site-packages/torch/nn/functional.py", line 2450, in batch_norm
return torch.batch_norm(
RuntimeError: running_mean should contain 197 elements not 256

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