Transfer Learning Library for Domain Adaptation, Task Adaptation, and Domain Generalization
See the code
We upload an offline version of documentation here. You can download and unzip it to view the documentation.
A note on broken dataset links can be found here: DATASETS.md.
TLlib is an open-source and well-documented library for Transfer Learning. It is based on pure PyTorch with high performance and friendly API. Our code is pythonic, and the design is consistent with torchvision. You can easily develop new algorithms, or readily apply existing algorithms.
Our API is divided by methods, which include:
We provide many example codes in the directory examples, which is divided by learning setups. Currently, the supported learning setups include:
Our supported tasks include: classification, regression, object detection, segmentation, keypoint detection, and so on.
We support installing TLlib via pip, which is experimental currently.
pip install -i https://test.pypi.org/simple/ tllib==0.4
We release v0.4 of TLlib. Previous versions of TLlib can be found here. In v0.4, we add implementations of
the following methods:
Besides, we maintain a collection of awesome papers in Transfer Learning in another repo A Roadmap for Transfer Learning.
We adjusted our API following our survey Transferablity in Deep Learning.
The currently supported algorithms include:
tllib and all the dependency.python setup.py install
pip install -r requirements.txt
pippip is currently experimental.pip install -i https://test.pypi.org/simple/ tllib==0.4
You can find the API documentation on the website: Documentation.
You can find examples in the directory examples. A typical usage is
# Train a DANN on Office-31 Amazon -> Webcam task using ResNet 50.
# Assume you have put the datasets under the path `data/office-31`,
# or you are glad to download the datasets automatically from the Internet to this path
python dann.py data/office31 -d Office31 -s A -t W -a resnet50 --epochs 20
We appreciate all contributions. If you are planning to contribute back bug-fixes, please do so without any further discussion. If you plan to contribute new features, utility functions or extensions, please first open an issue and discuss the feature with us.
This is a utility library that downloads and prepares public datasets. We do not host or distribute these datasets, vouch for their quality or fairness, or claim that you have licenses to use the dataset. It is your responsibility to determine whether you have permission to use the dataset under the dataset's license.
If you're a dataset owner and wish to update any part of it (description, citation, etc.), or do not want your dataset to be included in this library, please get in touch through a GitHub issue. Thanks for your contribution to the ML community!
If you have any problem with our code or have some suggestions, including the future feature, feel free to contact
or describe it in Issues.
For Q&A in Chinese, you can choose to ask questions here before sending an email. 迁移学习算法库答疑专区
If you use this toolbox or benchmark in your research, please cite this project.
@misc{jiang2022transferability,
title={Transferability in Deep Learning: A Survey},
author={Junguang Jiang and Yang Shu and Jianmin Wang and Mingsheng Long},
year={2022},
eprint={2201.05867},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
@misc{tllib,
author = {Junguang Jiang, Baixu Chen, Bo Fu, Mingsheng Long},
title = {Transfer-Learning-library},
year = {2020},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/thuml/Transfer-Learning-Library}},
}
We would like to thank School of Software, Tsinghua University and The National Engineering Laboratory for Big Data Software for providing such an excellent ML research platform.
4,130 followers · starred Aug 2020
130 followers · starred Aug 2020
315 followers · starred Feb 2022
30 followers · starred Feb 2023
Transfer Learning Library for Domain Adaptation, Task Adaptation, and Domain Generalization
See the code
We upload an offline version of documentation here. You can download and unzip it to view the documentation.
A note on broken dataset links can be found here: DATASETS.md.
TLlib is an open-source and well-documented library for Transfer Learning. It is based on pure PyTorch with high performance and friendly API. Our code is pythonic, and the design is consistent with torchvision. You can easily develop new algorithms, or readily apply existing algorithms.
Our API is divided by methods, which include:
We provide many example codes in the directory examples, which is divided by learning setups. Currently, the supported learning setups include:
Our supported tasks include: classification, regression, object detection, segmentation, keypoint detection, and so on.
We support installing TLlib via pip, which is experimental currently.
pip install -i https://test.pypi.org/simple/ tllib==0.4
We release v0.4 of TLlib. Previous versions of TLlib can be found here. In v0.4, we add implementations of
the following methods:
Besides, we maintain a collection of awesome papers in Transfer Learning in another repo A Roadmap for Transfer Learning.
We adjusted our API following our survey Transferablity in Deep Learning.
The currently supported algorithms include:
tllib and all the dependency.python setup.py install
pip install -r requirements.txt
pippip is currently experimental.pip install -i https://test.pypi.org/simple/ tllib==0.4
You can find the API documentation on the website: Documentation.
You can find examples in the directory examples. A typical usage is
# Train a DANN on Office-31 Amazon -> Webcam task using ResNet 50.
# Assume you have put the datasets under the path `data/office-31`,
# or you are glad to download the datasets automatically from the Internet to this path
python dann.py data/office31 -d Office31 -s A -t W -a resnet50 --epochs 20
We appreciate all contributions. If you are planning to contribute back bug-fixes, please do so without any further discussion. If you plan to contribute new features, utility functions or extensions, please first open an issue and discuss the feature with us.
This is a utility library that downloads and prepares public datasets. We do not host or distribute these datasets, vouch for their quality or fairness, or claim that you have licenses to use the dataset. It is your responsibility to determine whether you have permission to use the dataset under the dataset's license.
If you're a dataset owner and wish to update any part of it (description, citation, etc.), or do not want your dataset to be included in this library, please get in touch through a GitHub issue. Thanks for your contribution to the ML community!
If you have any problem with our code or have some suggestions, including the future feature, feel free to contact
or describe it in Issues.
For Q&A in Chinese, you can choose to ask questions here before sending an email. 迁移学习算法库答疑专区
If you use this toolbox or benchmark in your research, please cite this project.
@misc{jiang2022transferability,
title={Transferability in Deep Learning: A Survey},
author={Junguang Jiang and Yang Shu and Jianmin Wang and Mingsheng Long},
year={2022},
eprint={2201.05867},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
@misc{tllib,
author = {Junguang Jiang, Baixu Chen, Bo Fu, Mingsheng Long},
title = {Transfer-Learning-library},
year = {2020},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/thuml/Transfer-Learning-Library}},
}
We would like to thank School of Software, Tsinghua University and The National Engineering Laboratory for Big Data Software for providing such an excellent ML research platform.
4,130 followers · starred Aug 2020
130 followers · starred Aug 2020
315 followers · starred Feb 2022
30 followers · starred Feb 2023