Instructions to use miaaiart/tranh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use miaaiart/tranh 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("miaaiart/tranh") prompt = "Chinese painting style, a photograph featuring a miaohwx woman in traditional attire. She is of a fair complexion with delicate, smooth skin and is dressed in a traditional Chinese Hanfu, characterized by its flowing, silky fabric in a muted green color. The Hanfu is intricately designed with a high collar and a large, elegant bow at the back, adding to its classic aesthetic. The woman's hair is styled in an elaborate updo, adorned with small, delicate hairpins and flowers, which contribute to the traditional and sophisticated look. She is holding a large, round, golden fan with a subtle floral design in her left hand, and her right hand is gently grasping the edge of the fan. The background is a soft, neutral beige, which helps to accentuate the subject and her attire. The overall texture of the image is smooth, with a soft, almost ethereal quality to the lighting, which adds to the serene and timeless atmosphere. The photograph captures a moment of quiet reflection, emphasizing the elegance and grace of traditional Chinese culture." image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!