RepositoryPythonUSHoa Kỳ
LU

lucidrains/byol-pytorch

Usable Implementation of "Bootstrap Your Own Latent" self-supervised learning, from Deepmind, in Pytorch

1.9ksao
248fork
40issue
3lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: self-supervised-learning

#1 Repository của tháng

5
TINIX TRENDING·Chủ đề: artificial-intelligence

#5 Repository của tháng

1
TINIX TRENDING·Chủ đề: self-supervised-learning

#1 Repository của tháng

🚀 BYOL: Học tự giám sát không cần cặp âm, chỉ bằng PyTorch

BYOL đạt state-of-the-art mà không dùng contrastive learning — chỉ cần unlabelled images.

byol-pytorch là phiên bản thực thi Bootstrap Your Own Latent của DeepMind bằng PyTorch. Dự án cung cấp một module có thể bọc bất kỳ mạng nơ-ron hình ảnh nào (ResNet, discriminator, policy network) để bắt đầu huấn luyện với dữ liệu chưa gán nhãn ngay lập tức.

✨ Điểm nổi bật

  • Dựa trên mô hình BYOL chính thức: học biểu diễn latent mà không cần dán nhãn
  • Không cần cặp âm (-negative pairs): đạt kết quả tốt hơn SimCLR mà không cần contrastive loss
  • Plugin dễ dàng: chỉ cần truyền mạng và tên lớp ẩn, ví dụ hidden_layer='avgpool'
  • Hỗ trợ SimSiam: tắt use_momentum=False để dùng biến thể không cần exponential moving average
  • Tùy biến augmentation: dùng augment_fn tùy chỉnh hoặc mặc định từ SimCLR
  • Truy xuất embedding/projection: dùng return_embedding=True khi cần
  • Hỗ trợ huấn luyện phân tán: tích hợp HuggingFace Accelerate qua BYOLTrainer

💡 Vì sao đáng chú ý

BYOL khác biệt bằng cách dùng một bộ mã (online encoder) và một bộ mục tiêu (target encoder) cập nhật qua moving average. Phương pháp này loại bỏ hoàn toàn sự phụ thuộc vào negative sampling — một rào cản lớn trong các kỹ thuật học tự giám sát truyền thống như SimCLR.

Dự án không chỉ là bản sao mã nguồn, mà còn cập nhật các cải tiến mới như thay thế BatchNorm bằng GroupNorm + Weight Standardization, giúp mô hình linh hoạt hơn trong các môi trường batch size nhỏ.


#BYOL #SelfSupervisedLearning #PyTorch #DeepMind #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJupyter Notebook
rasbt/LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

109.4k
Nov 26, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026
RepositoryPython
AUTOMATIC1111/stable-diffusion-webui

Stable Diffusion web UI

165.4k
Mar 2, 2026
RepositoryPython
Lightning-AI/pytorch-lightning

Pretrain, finetune ANY AI model of ANY size on 1 or 10,000+ GPUs with zero code changes.

31.5k
Nov 30, 2026
RepositoryPython
d2l-ai/d2l-zh

《动手学深度学习》:面向中文读者、能运行、可讨论。中英文版被70多个国家的500多所大学用于教学。

82.9k
Jul 30, 2024
RepositoryPython
rohitg00/ai-engineering-from-scratch

Learn AI Engineering! Learn it. Build it. Ship it for others.

81.4k
Nov 30, 2026
RepositoryJupyter Notebook
microsoft/AI-For-Beginners

12 Weeks, 24 Lessons, AI for All!

71.5k
Nov 15, 2026
Repository
ashishpatel26/500-AI-Machine-learning-Deep-learning-Computer-vision-NLP-Projects-with-code

500 AI Machine learning Deep learning Computer vision NLP Projects with code

38.0k
Sep 26, 2026
RepositoryJavaScript
AMAI-GmbH/AI-Expert-Roadmap

Roadmap to becoming an Artificial Intelligence Expert in 2022

31.4k
Sep 12, 2025