1prompt ='''Portrait of ohwx woman, professional headshot, studio lighting, elegant pose, looking at camera, soft shadows, high quality, detailed facial features, cinematic lighting, 85mm lens, shallow depth of field'''2negative_prompt ="blurry, low quality, distorted, bad anatomy"3image = pipe(4 prompt=prompt,5 negative_prompt=negative_prompt,6 width=1024,7 height=1024,8 num_inference_steps=30,9 guidance_scale=3.5,10 generator=torch.Generator(device="cuda").manual_seed(346346)11)1213# Display the image (in Jupyter or save to file)14image.show()15# or16image.save("output.png")
🖼️ Sample Output
Sample Output
🎛️ Using with ComfyUI
We provide a ready-to-use ComfyUI workflow that works with our trained LoRA models. Follow these steps to set up and use the workflow:
Copy the LoRA file flymy-ai/flux-anne-hathaway-lora/pytorch_lora_weights.safetensors to ComfyUI/models/loras/
Load the workflow:
Open ComfyUI in your browser
Load the workflow file flux_anne_hathaway_lora_example.json located in this repository
The workflow is pre-configured to work with our LoRA models
Workflow Features
✅ Pre-configured for FLUX.1-dev + LoRA inference
✅ Optimized settings for best quality output
✅ Easy prompt and parameter adjustment
✅ Compatible with all our trained LoRA models
The ComfyUI workflow provides a user-friendly interface for generating images with our trained LoRA models without needing to write Python code.
🖼️ Workflow Screenshot
ComfyUI Workflow
🎨 Generation Examples
Below are examples of images generated with our Anne Hathaway LoRA model:
Casual Portrait Selfie
Prompt: "ohwx woman portrait selfie"
Casual Portrait Selfie
Artistic Double Exposure
Prompt: "ohwx woman perfectly symmetrical young female face close-up, presented with double exposure overlay blending nature textures like leaves and water"
Artistic Double Exposure
Golden Hour Macro Portrait
Prompt: "ohwx woman Macro photography style close-up of female face with light makeup, focused on eyes and lips, illuminated by golden hour sunlight for warm tones"
Golden Hour Macro Portrait
Cozy Portrait with Panda
Prompt: "Close-up of ohwx woman in brown knitted turtleneck sweater. Sitting with big black and white panda, hugging it, looking at camera"