thuml/Transfer-Learning-Library là dự án AI Tools trên GitHub, viết chủ yếu bằng Python, với 3.9k sao. Transfer Learning Library for Domain Adaptation, Task Adaptation, and Domain Generalization
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
We upload an offline version of documentation here. You can download and unzip it to view the documentation.
Notice (2023-08-09)
A note on broken dataset links can be found here: DATASETS.md.
Introduction
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:
domain alignment methods (tllib.aligment)
domain translation methods (tllib.translation)
self-training methods (tllib.self_training)
regularization methods (tllib.regularization)
data reweighting/resampling methods (tllib.reweight)
model ranking/selection methods (tllib.ranking)
normalization-based methods (tllib.normalization)
We provide many example codes in the directory examples, which is divided by learning setups. Currently, the supported learning setups include:
DA (domain adaptation)
TA (task adaptation, also known as finetune)
OOD (out-of-distribution generalization, also known as DG / domain generalization)
SSL (semi-supervised learning)
Model Selection
Our supported tasks include: classification, regression, object detection, segmentation, keypoint detection, and so on.
Updates
2022.9
We support installing TLlib via pip, which is experimental currently.
LWF - Learning Without Forgetting [ECCV 2016] [Code]
Bi-Tuning - Bi-tuning of Pre-trained Representations [ArXiv] [Code]
Pre-trained Model Selection [Code]
H-Score - An Information-theoretic Approach to Transferability in Task Transfer Learning [ICIP 2019] [Code]
NCE - Negative Conditional Entropy in `Transferability and Hardness of Supervised Classification Tasks [ICCV 2019] [Code]
LEEP - LEEP: A New Measure to Evaluate Transferability of Learned Representations [ICML 2020] [Code]
LogME - Log Maximum Evidence in `LogME: Practical Assessment of Pre-trained Models for Transfer Learning [ICML 2021] [Code]
Semi-Supervised Learning for Classification [Code]
Pseudo Label - Pseudo-Label : The Simple and Efficient Semi-Supervised Learning Method for Deep Neural Networks [ICML 2013] [Code]
Pi Model - Temporal Ensembling for Semi-Supervised Learning [ICLR 2017] [Code]
Mean Teacher - Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results [NIPS 2017] [Code]
You can find the API documentation on the website: Documentation.
Usage
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
Contributing
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.
Disclaimer on Datasets
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!
Contact
If you have any problem with our code or have some suggestions, including the future feature, feel free to contact
For Q&A in Chinese, you can choose to ask questions here before sending an email. 迁移学习算法库答疑专区
Citation
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}},
}
Acknowledgment
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.
Đọc thêm về thuml/Transfer-Learning-Library ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/thuml/Transfer-Learning-Library là nguồn chính thức.
thuml/Transfer-Learning-Library có những chủ đề gì?
GitHub topics của thuml/Transfer-Learning-Library: "adversarial-learning", "dann", "deep-learning", "domain-adaptation", "finetune", "image-translation", "out-of-distribution-generalization", "self-training", "semi-supervised-learning", "transfer-learning", "unsupervised-domain-adaptation". TopGit xếp repo vào nhóm AI Tools.
thuml/Transfer-Learning-Library có phải mã nguồn mở không?
Có — thuml/Transfer-Learning-Library phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/thuml/Transfer-Learning-Library.
thuml/Transfer-Learning-Library có trang demo không?
Dự án có trang chủ ở http://transfer.thuml.ai. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
thuml/Transfer-Learning-Library còn đang phát triển không?
Commit gần nhất trên thuml/Transfer-Learning-Library là 2.5 năm trước (theo timestamp GitHub). Repo có 603 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
thuml/Transfer-Learning-Library dùng license gì?
thuml/Transfer-Learning-Library phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc Transfer-Learning-Library có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về Transfer-Learning-Library.