RepositoryPythonCHThụy Sĩ
nyx-ai

nyx-ai/stylegan2-flax-tpu

🖼 Training StyleGAN2 at scale on TPUs

131sao
11fork
4issue
0lượt xem

🧠 StyleGAN2 Flax TPU — Huấn luyện thế hệ ảnh trên TPU

scale

Phiên bản StyleGAN2 tối ưu cho huấn luyện trên pod TPU, hỗ trợ dữ liệu phân tán và logging nâng cao.

Dự án stylegan2-flax-tpu là bản tinh chỉnh từ codebase của Matthias Wright, được Nyx.ai phát triển để huấn luyện StyleGAN2 hiệu quả trên các thế hệ TPU v2–v4. Đây là công nghệ nền tảng cho nền tảng chụả ảnh do AI tạo ra tại Nyx.gallery.

✨ Điểm nổi bật

  • Data-parallel trên TPU pods: hỗ trợ huấn luyện đồng thời trên nhiều TPU, được kiểm chứng từ v2 đến v4.
  • Tích hợp GCS: đồng bộ dữ liệu và chia nhỏ dataset giữa các worker qua Google Cloud Storage.
  • Cải tiến W&B logging: ghi nhận chi tiết bao gồm snapshot đánh giá với latent cố định.
  • Hỗ trợ lớp có điều kiện: thêm thống kê trung bình di chuyển cho từng lớp trong bộ sinh.
  • Quản lý checkpoint thông minh: lưu mỗi 10k bước, giữ lại 2 bản tốt nhất.
  • Kiểm soát chi tiết mô hình: hỗ trợ đóng băng lớp, tắt regularization, giới hạn fmap qua --fmap_max.
  • Hỗ trợ tham số linh hoạt: thêm --num_steps, --early_stopping_after_steps, --mixed_precision.
  • Công cụ hỗ trợ huấn luyện: chuyển đổi ảnh sang TFRecord, sinh ảnh từ checkpoint, profiling JAX.

💡 Vì sao đáng chú ý

Khác với các repo StyleGAN2 chạy trên GPU, dự án này được tối ưu riêng cho kiến trúc TPU — khai thác tuân bố xử lý ma trận để tăng tốc đáng kể. Kết hợp với GCS và sharding dữ liệu, nó cho phép huấn luyện quy mô lớn mà không cần quản lý thủ công các node. Phù hợp cho nghiên cứu thế hệ ảnh và ứng dụng thương mại như Nyx.gallery.


#StyleGAN2 #Flax #TPU #JAX #GenerativeAI #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.

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.

187.7k
Oct 24, 2026
RepositoryPython
XingangPan/DragGAN

Official Code for DragGAN (SIGGRAPH 2023)

35.7k
May 18, 2024
RepositoryPython
Yzmblog/DMAD

DMAD: Distribution Matching as Adversarial Distillation for Fast Visual Generation

228
Oct 21, 2026
RepositoryJupyter Notebook
amanchadha/coursera-gan-specialization

Programming assignments and quizzes from all courses within the GANs specialization offered by deeplearning.ai

482
Jul 1, 2021
RepositoryHTML
f/prompts.chat

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

174.6k
Oct 26, 2026
RepositoryJupyter Notebook
rasbt/LLMs-from-scratch

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

107.3k
Oct 2, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
190.2M
Jun 1, 2026
RepositoryPython
usestrix/strix

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

72.1k
Oct 26, 2026
RepositoryPython
AUTOMATIC1111/stable-diffusion-webui

Stable Diffusion web UI

165.1k
Mar 2, 2026