pickapic-anonymous/pickapic_v1
Viewer • Updated • 616k • 2.59k • 12
How to use casiatao/LRM with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("casiatao/LRM", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]This repository contains the Latent Reward Models (LRM) based on SD1.5 and SDXL. The corresponding github repository is https://github.com/Kwai-Kolors/LPO.
If you find this repository helpful, please consider giving it a like ❤️ and citing:
@article{zhang2025diffusion,
title={Diffusion Model as a Noise-Aware Latent Reward Model for Step-Level Preference Optimization},
author={Zhang, Tao and Da, Cheng and Ding, Kun and Jin, Kun and Li, Yan and Gao, Tingting and Zhang, Di and Xiang, Shiming and Pan, Chunhong},
journal={arXiv preprint arXiv:2502.01051},
year={2025}
}