MCPcopy Create free account
hub / github.com/Albert0147/G-SFDA

github.com/Albert0147/G-SFDA @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
108 symbols 321 edges 11 files 2 documented · 2% updated 4y ago★ 1101 open issues

Browse by type

Functions 93 Types & classes 15
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Generalized Source-free Domain Adaptation (ICCV 2021)

Code (based on pytorch 1.3, cuda 10.0, please check the 'requirements.txt' for reproducing the results) for our ICCV 2021 paper 'Generalized Source-free Domain Adaptation'. [project] [paper].

(Please also check our NeurIPS 2021 paper 'Exploiting the Intrinsic Neighborhood Structure for Source-free Domain Adaptation'. [project] [paper] [code], which goes deeper into the neighborhood clustering for SFDA by simply introducing reciprocity.)

Dataset preparing

Download the VisDA and Office-Home (use our provided image list files) dataset. And denote the path of data list in the code.

Training

First train the model on source data with both source and target attention, then adapt the model to target domain in absence of source data. We use embedding layer to automatically produce the domain attention.

sh visda.sh (for VisDA)\ sh office-home.sh (for Office-Home)

Checkpoints We provide the training log files, source model and target model on VisDA in this link. You can directly start the source-free adaptation from our source model to reproduce the results.

Domain Classifier

The file 'domain_classifier.ipynb' contains the code for training domain classifier and evaluating the model with estimated domain ID (on VisDA).

Acknowledgement

The codes are based on SHOT (ICML 2020, also source-free).

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 58
Method 35
Class 15

Languages

Python100%

Modules by API surface

utils.py21 symbols
network.py17 symbols
Continual_SFDA/utils.py12 symbols
data_list.py11 symbols
train_tar_oh.py9 symbols
train_src_visda.py9 symbols
train_tar_visda.py8 symbols
Continual_SFDA/continual_sfda.py8 symbols
Continual_SFDA/network.py6 symbols
loss.py4 symbols
train_src_oh.py3 symbols

For agents

$ claude mcp add G-SFDA \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page