restore_photo_v3.1-lora

9
by
cyburn
Image Model
OTHER
New
9 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary

Download model and use it with ComfyUI, AUTOMATIC1111, SD.

Code Examples

Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")
Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)pythonpytorch
from diffusers import AutoPipelineForText2Image
import torch

pipeline = AutoPipelineForText2Image.from_pretrained('black-forest-labs/FLUX.1-Kontext-dev', torch_dtype=torch.bfloat16).to('cuda')
pipeline.load_lora_weights('cyburn/restore_photo_v3.1-lora', weight_name='restore_photo_v3.1_000000250.safetensors')
image = pipeline('a beautiful landscape').images[0]
image.save("my_image.png")

Deploy This Model

Production-ready deployment in minutes

Together.ai

Instant API access to this model

Fastest API

Production-ready inference API. Start free, scale to millions.

Try Free API

Replicate

One-click model deployment

Easiest Setup

Run models in the cloud with simple API. No DevOps required.

Deploy Now

Disclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.