roysubhankar / dwt-domain-adaptation Goto Github PK
View Code? Open in Web Editor NEWCode for paper "Unsupervised Domain Adaptation using Feature-Whitening and Consensus Loss" (CVPR 2019)
Code for paper "Unsupervised Domain Adaptation using Feature-Whitening and Consensus Loss" (CVPR 2019)
In resnet50_dwt_mec_officehome.py line 524, cuda device fixed as 0.
In whitening.py line 23,24,48,51, cuda device fixed as 0.
This prohibits this code from running on non-"0" gpus.
Would be nice to make device id an argument.
hi, thanks for your contribution
I have some problem here
Traceback (most recent call last):
File "resnet50_dwt_mec_officehome.py", line 603, in
main()
File "resnet50_dwt_mec_officehome.py", line 600, in main
target_test_loader=target_testloader)
File "resnet50_dwt_mec_officehome.py", line 420, in train_infinite_collect_stats
output = model(data)
File "/home/xing/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "resnet50_dwt_mec_officehome.py", line 336, in forward
x = torch.cat((self.bns1(x_s), torch.cat((self.bnt1(x_t), self.bnt1_aug(x_t_dup)), dim=0) ), dim=0) * self.gamma1 + self.beta1
File "/home/xing/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "resnet50_dwt_mec_officehome.py", line 60, in forward
out = self.wh(x)
File "/home/xing/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/xing/mengzhu/paper_code/dwt-domain-adaptation-master/utils/whitening.py", line 50, in forward
f_cov_shrinked = (1-self.eps) * f_cov + self.eps * torch.eye(self.group_size, out=torch.cuda(2).FloatTensor() if torch.cuda.is_available() else torch.FloatTensor()).repeat(self.num_groups, 1, 1)
TypeError: 'module' object is not callable
Hi,
First of all, nice work!
I would like to obtain the source code to replicate the other experiments, such as the MNIST <-> SVHN. Could you make it available? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.