dnap512 / selfreg Goto Github PK
View Code? Open in Web Editor NEWPyTorch implementation of Self-supervised Contrastive Regularization for DG (SelfReg) [ICCV2021]
License: MIT License
PyTorch implementation of Self-supervised Contrastive Regularization for DG (SelfReg) [ICCV2021]
License: MIT License
Hello,
I can't find the file or folder of “domainbed” in this repo.
Could you share it with me?
Thanks!
Thanks for the wonderful work
One thing I want to ask is the backbone network of your work.
The paper says that you used ResNet18 for the backbone network.
However, in DomainBed, all experiments are conducted with ResNet50.
You used the same results from DomainBed paper for other baselines (which used ResNet50) in your paper but your method is conducted with ResNet18.
Can you clarify the experiment setting regarding such issue?
Thanks, in advance
Hi, I have a question, in
SelfReg/domainbed_code/algorithms.py
Line 75 in 05d9777
Hi, thanks for your great work and code release.
I have a question about training.
It is noticed that in train.ipynb
lr_decay-epoch is set to 100, but max epoch is 30.
In paper, 'note that such a decaying learning rate is not used when ti combined with the Stochastic weights averaging technique'
It means that: if we use SWA(stochastic weights averaging), we use constant lr (0.004) during training.
if we not use SWA, we need to decay lr to 0.004*0.1=0.0004 after epoch 24.
Am I right ?
Another question is :
the results of these 2 settings differ a lot ?
Thanks for your help.
Hi, could you please provide the code of using SWA? Thanks.
Hello, when I read your code, there is problem.
In your code, SelfReg-main/codes/utils.py line 224-226
if is_self_reg: output, feat = model.extract_features(x) proj = model.projection(feat) elif is_positive_pair: output, feat = model.extract_features(x1) output2, feat2 = model.extract_features(x2)
I want to know the function about elif, what the is_positive_pair is and x1, x2 is what,
Wish your respond.
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.