Instructions to use PrunaAI/p-image-photos-classic-film-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use PrunaAI/p-image-photos-classic-film-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-classic-film-lora") prompt = "t3chnic4lly A couple dancing in a ballroom with soft lighting and period costumes." image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
| tags: | |
| - text-to-image | |
| - lora | |
| - diffusers | |
| - template:diffusion-lora | |
| widget: | |
| - output: | |
| url: images/example_001.png | |
| text: t3chnic4lly A couple dancing in a ballroom with soft lighting and period costumes. | |
| - output: | |
| url: images/example_002.png | |
| text: t3chnic4lly A detective in a trench coat walking through rain-soaked streets | |
| at night. | |
| - output: | |
| url: images/example_003.png | |
| text: t3chnic4lly A woman in a red dress at a 1950s diner counter. | |
| - output: | |
| url: images/example_004.png | |
| text: t3chnic4lly A black and white scene of a jazz musician playing saxophone in | |
| a smoky club. | |
| - output: | |
| url: images/example_005.png | |
| text: t3chnic4lly A family picnic in a park on a sunny afternoon, vintage film look. | |
| license: apache-2.0 | |
| # Photos Classic Film Lora | |
| <Gallery /> | |
| ## Model description | |
| This is a text-to-image LoRA. **Trigger word:** use `t3chnic4lly` in your prompts for best results. The gallery above shows sample generations. | |
| ## Trigger word | |
| Prepend **`t3chnic4lly`** to your prompt, for example: | |
| ``` | |
| t3chnic4lly <your prompt here> | |
| ``` | |
| ## Gallery | |
| ### Example 1 | |
|  | |
| *Prompt:* t3chnic4lly A couple dancing in a ballroom with soft lighting and period costumes. | |
| ### Example 2 | |
|  | |
| *Prompt:* t3chnic4lly A detective in a trench coat walking through rain-soaked streets at night. | |
| ### Example 3 | |
|  | |
| *Prompt:* t3chnic4lly A woman in a red dress at a 1950s diner counter. | |
| ### Example 4 | |
|  | |
| *Prompt:* t3chnic4lly A black and white scene of a jazz musician playing saxophone in a smoky club. | |
| ### Example 5 | |
|  | |
| *Prompt:* t3chnic4lly A family picnic in a park on a sunny afternoon, vintage film look. | |
| ## Example prompts | |
| Prompts used for the gallery above: | |
| - t3chnic4lly A couple dancing in a ballroom with soft lighting and period costumes. | |
| - t3chnic4lly A detective in a trench coat walking through rain-soaked streets at night. | |
| - t3chnic4lly A woman in a red dress at a 1950s diner counter. | |
| - t3chnic4lly A black and white scene of a jazz musician playing saxophone in a smoky club. | |
| - t3chnic4lly A family picnic in a park on a sunny afternoon, vintage film look. | |
| ## LoRA scale | |
| The gallery was generated with **`lora_scale=0.75`**. 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": "t3chnic4lly your prompt here", | |
| "lora_weights": "https://huggingface.co/davidberenstein1957/p-image-photos-classic-film-lora/resolve/main/weights.safetensors", | |
| "lora_scale": 0.75, | |
| "hf_api_token": "your-hf-token", | |
| } | |
| ) | |
| ``` | |