SDAT icon indicating copy to clipboard operation
SDAT copied to clipboard

Unavailable dataset

Open friedrice231 opened this issue 10 months ago • 2 comments

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.

friedrice231 avatar Apr 11 '24 03:04 friedrice231

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

rangwani-harsh avatar Apr 11 '24 06:04 rangwani-harsh

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

friedrice231 avatar Apr 11 '24 10:04 friedrice231