Instructions to use PrunaAI/p-image-photos-modernism-art-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use PrunaAI/p-image-photos-modernism-art-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("PrunaAI/p-image-photos-modernism-art-lora") prompt = "DADADOLL style A figure with geometric shapes and bold colors in a surreal interior." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
File size: 2,938 Bytes
cfe1a90 98c350d cfe1a90 a5994de 98c350d a5994de 98c350d cfe1a90 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | ---
tags:
- text-to-image
- lora
- diffusers
- template:diffusion-lora
widget:
- output:
url: images/example_001.png
text: DADADOLL style A figure with geometric shapes and bold colors in a surreal
interior.
- output:
url: images/example_002.png
text: DADADOLL style A portrait with fragmented planes and cubist influences.
- output:
url: images/example_003.png
text: DADADOLL style A still life of fruit and objects rearranged in an abstract
composition.
- output:
url: images/example_004.png
text: DADADOLL style A cityscape with distorted perspective and vivid blocks of
color.
- output:
url: images/example_005.png
text: DADADOLL style A face composed of overlapping geometric forms and sharp angles.
license: apache-2.0
---
# Photos Modernism Art Lora
<Gallery />
## Model description
This is a text-to-image LoRA. **Trigger word:** use `DADADOLL style` in your prompts for best results. The gallery above shows sample generations.
## Trigger word
Prepend **`DADADOLL style`** to your prompt, for example:
```
DADADOLL style <your prompt here>
```
## Gallery
### Example 1

*Prompt:* DADADOLL style A figure with geometric shapes and bold colors in a surreal interior.
### Example 2

*Prompt:* DADADOLL style A portrait with fragmented planes and cubist influences.
### Example 3

*Prompt:* DADADOLL style A still life of fruit and objects rearranged in an abstract composition.
### Example 4

*Prompt:* DADADOLL style A cityscape with distorted perspective and vivid blocks of color.
### Example 5

*Prompt:* DADADOLL style A face composed of overlapping geometric forms and sharp angles.
## Example prompts
Prompts used for the gallery above:
- DADADOLL style A figure with geometric shapes and bold colors in a surreal interior.
- DADADOLL style A portrait with fragmented planes and cubist influences.
- DADADOLL style A still life of fruit and objects rearranged in an abstract composition.
- DADADOLL style A cityscape with distorted perspective and vivid blocks of color.
- DADADOLL style A face composed of overlapping geometric forms and sharp angles.
## LoRA scale
The gallery was generated with **`lora_scale=0.5`**. You can tune this when running inference (e.g. lower for a subtler effect, higher for a stronger style).
## Use on Replicate
```python
import replicate
output = replicate.run(
"prunaai/p-image-lora:393190dc623ef136356d6a7221c561f48771f39c5cff90ef903ca49d1bd47574",
input={
"prompt": "DADADOLL style your prompt here",
"lora_weights": "https://huggingface.co/davidberenstein1957/p-image-photos-modernism-art-lora/resolve/main/weights.safetensors",
"lora_scale": 0.5,
"hf_api_token": "your-hf-token",
}
)
```
|