[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-72513":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},72513,"JiT","LTH14\u002FJiT","LTH14","PyTorch implementation of JiT https:\u002F\u002Farxiv.org\u002Fabs\u002F2511.13720","",null,"Python",2571,173,15,57,0,1,21,51.32,"MIT License",false,"main",true,[],"2026-11-24 04:00:32","## Just image Transformer (JiT) for Pixel-space Diffusion\n\n[![arXiv](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv%20paper-2511.13720-b31b1b.svg)](https:\u002F\u002Farxiv.org\u002Fabs\u002F2511.13720)&nbsp;\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"demo\u002Fvisual.jpg\" width=\"100%\">\n\u003C\u002Fp>\n\n\nThis is a PyTorch\u002FGPU re-implementation of the paper [Back to Basics: Let Denoising Generative Models Denoise](https:\u002F\u002Farxiv.org\u002Fabs\u002F2511.13720):\n\n```\n@article{li2025jit,\n  title={Back to Basics: Let Denoising Generative Models Denoise},\n  author={Li, Tianhong and He, Kaiming},\n  journal={arXiv preprint arXiv:2511.13720},\n  year={2025}\n}\n```\n\nJiT adopts a minimalist and self-contained design for pixel-level high-resolution image diffusion. \nThe original implementation was in JAX+TPU. This re-implementation is in PyTorch+GPU.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"demo\u002Fjit.jpg\" width=\"40%\">\n\u003C\u002Fp>\n\n### Dataset\nDownload [ImageNet](http:\u002F\u002Fimage-net.org\u002Fdownload) dataset, and place it in your `IMAGENET_PATH`.\n\n### Installation\n\nDownload the code:\n```\ngit clone https:\u002F\u002Fgithub.com\u002FLTH14\u002FJiT.git\ncd JiT\n```\n\nA suitable [conda](https:\u002F\u002Fconda.io\u002F) environment named `jit` can be created and activated with:\n\n```\nconda env create -f environment.yaml\nconda activate jit\n```\n\nIf you get ```undefined symbol: iJIT_NotifyEvent``` when importing ```torch```, simply\n```\npip uninstall torch\npip install torch==2.5.1 --index-url https:\u002F\u002Fdownload.pytorch.org\u002Fwhl\u002Fcu124\n```\nCheck this [issue](https:\u002F\u002Fgithub.com\u002Fconda\u002Fconda\u002Fissues\u002F13812#issuecomment-2071445372) for more details.\n\n### Training\nThe below training scripts have been tested on 8 H200 GPUs.\n\nExample script for training JiT-B\u002F16 on ImageNet 256x256 for 600 epochs:\n```\ntorchrun --nproc_per_node=8 --nnodes=1 --node_rank=0 \\\nmain_jit.py \\\n--model JiT-B\u002F16 \\\n--proj_dropout 0.0 \\\n--P_mean -0.8 --P_std 0.8 \\\n--img_size 256 --noise_scale 1.0 \\\n--batch_size 128 --blr 5e-5 \\\n--epochs 600 --warmup_epochs 5 \\\n--gen_bsz 128 --num_images 50000 --cfg 2.9 --interval_min 0.1 --interval_max 1.0 \\\n--output_dir ${OUTPUT_DIR} --resume ${OUTPUT_DIR} \\\n--data_path ${IMAGENET_PATH} --online_eval\n```\n\nExample script for training JiT-B\u002F32 on ImageNet 512x512 for 600 epochs:\n```\ntorchrun --nproc_per_node=8 --nnodes=1 --node_rank=0 \\\nmain_jit.py \\\n--model JiT-B\u002F32 \\\n--proj_dropout 0.0 \\\n--P_mean -0.8 --P_std 0.8 \\\n--img_size 512 --noise_scale 2.0 \\\n--batch_size 128 --blr 5e-5 \\\n--epochs 600 --warmup_epochs 5 \\\n--gen_bsz 128 --num_images 50000 --cfg 2.9 --interval_min 0.1 --interval_max 1.0 \\\n--output_dir ${OUTPUT_DIR} --resume ${OUTPUT_DIR} \\\n--data_path ${IMAGENET_PATH} --online_eval\n```\n\nExample script for training JiT-H\u002F16 on ImageNet 256x256 for 600 epochs:\n```\ntorchrun --nproc_per_node=8 --nnodes=1 --node_rank=0 \\\nmain_jit.py \\\n--model JiT-H\u002F16 \\\n--proj_dropout 0.2 \\\n--P_mean -0.8 --P_std 0.8 \\\n--img_size 256 --noise_scale 1.0 \\\n--batch_size 128 --blr 5e-5 \\\n--epochs 600 --warmup_epochs 5 \\\n--gen_bsz 128 --num_images 50000 --cfg 2.2 --interval_min 0.1 --interval_max 1.0 \\\n--output_dir ${OUTPUT_DIR} --resume ${OUTPUT_DIR} \\\n--data_path ${IMAGENET_PATH} --online_eval\n```\n\n### Evaluation\n\nPyTorch pre-trained models are available [here](https:\u002F\u002Fwww.dropbox.com\u002Fscl\u002Ffo\u002F3ken1avtsd81ip67b9qpi\u002FAK218ZNvXKSv74igVvht4PQ?rlkey=14gjrblmljewpl6ygxzlr3njm&st=ffkl77al&dl=0).\n\nEvaluate pre-trained JiT-B:\n```\ntorchrun --nproc_per_node=8 --nnodes=1 --node_rank=0 \\\nmain_jit.py \\\n--model JiT-B\u002F16 (or JiT-B\u002F32) \\\n--img_size 256 (or 512) --noise_scale 1.0 (or 2.0) \\\n--gen_bsz 256 --num_images 50000 --cfg 3.0 --interval_min 0.1 --interval_max 1.0 \\\n--output_dir ${CKPT_DIR} --resume ${CKPT_DIR} \\\n--data_path ${IMAGENET_PATH} --evaluate_gen\n```\n\nEvaluate pre-trained JiT-L:\n```\ntorchrun --nproc_per_node=8 --nnodes=1 --node_rank=0 \\\nmain_jit.py \\\n--model JiT-L\u002F16 (or JiT-L\u002F32) \\\n--img_size 256 (or 512) --noise_scale 1.0 (or 2.0) \\\n--gen_bsz 256 --num_images 50000 --cfg 2.4 (or 2.5) --interval_min 0.1 --interval_max 1.0 \\\n--output_dir ${CKPT_DIR} --resume ${CKPT_DIR} \\\n--data_path ${IMAGENET_PATH} --evaluate_gen\n```\n\nEvaluate pre-trained JiT-H:\n```\ntorchrun --nproc_per_node=8 --nnodes=1 --node_rank=0 \\\nmain_jit.py \\\n--model JiT-H\u002F16 (or JiT-H\u002F32) \\\n--img_size 256 (or 512) --noise_scale 1.0 (or 2.0) \\\n--gen_bsz 256 --num_images 50000 --cfg 2.2 (or 2.3) --interval_min 0.1 --interval_max 1.0 \\\n--output_dir ${CKPT_DIR} --resume ${CKPT_DIR} \\\n--data_path ${IMAGENET_PATH} --evaluate_gen\n```\n\nWe use a customized [```torch-fidelity```](https:\u002F\u002Fgithub.com\u002FLTH14\u002Ftorch-fidelity)\nto evaluate FID and IS against a reference image folder or statistics. You can use ```prepare_ref.py```\nto prepare the reference image folder, or directly use our pre-computed reference stats\nunder ```fid_stats```.\n\n### Acknowledgements\n\nWe thank Google TPU Research Cloud (TRC) for granting us access to TPUs, and the MIT\nORCD Seed Fund Grants for supporting GPU resources.\n\n### Contact\n\nIf you have any questions, feel free to contact me through email (tianhong@mit.edu). Enjoy!\n","JiT（Just image Transformer）是一个面向像素空间扩散建模的轻量级图像生成模型，本项目提供了其在PyTorch框架下的高效GPU实现。核心特点是采用纯Transformer架构直接建模像素序列，摒弃传统U-Net结构，支持高分辨率图像（如256×256、512×512）的端到端训练与采样；具备低内存占用、模块化设计和开箱即用的ImageNet训练脚本。适用于需要可复现、资源可控的学术研究场景，尤其适合探索扩散模型基础架构设计、像素级生成机制及Transformer在生成任务中的边界性能。",2,"2026-11-24 03:12:52","high_star"]