How to use aigchacker/ThenAndNow with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("aigchacker/ThenAndNow") prompt = "Then-and-now: A black-and-white illustration of a wounded centaur, a mythical creature from ancient lore, is held up in front of a modern park scene, aligned with a wooded area in the background. In the foreground, the centaur is depicted limping, arrows embedded in its side, with a look of pain on its face. The background, in color, shows the same spot now peaceful and green, with people jogging and children playing, emphasizing the transformation from mythical battles to everyday tranquility" image = pipe(prompt).images[0]
The community tab is the place to discuss and collaborate with the HF community!