Instructions to use feelatkeen/image-to-game with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use feelatkeen/image-to-game with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("feelatkeen/image-to-game") prompt = "Playstation 1 Graphics" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Update README.md
Browse files
README.md
CHANGED
|
@@ -47,10 +47,10 @@ Weights for this model are available in Safetensors format.
|
|
| 47 |
|
| 48 |
```py
|
| 49 |
|
| 50 |
-
from diffusers import
|
| 51 |
import torch
|
| 52 |
|
| 53 |
-
pipeline =
|
| 54 |
pipeline.load_lora_weights("artificialguybr/ps1redmond-ps1-game-graphics-lora-for-sdxl")
|
| 55 |
pipeline.enable_model_cpu_offload()
|
| 56 |
init_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
|
|
|
|
| 47 |
|
| 48 |
```py
|
| 49 |
|
| 50 |
+
from diffusers import AutoPipelineForImage2Image
|
| 51 |
import torch
|
| 52 |
|
| 53 |
+
pipeline = AutoPipelineForImage2Image.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0")
|
| 54 |
pipeline.load_lora_weights("artificialguybr/ps1redmond-ps1-game-graphics-lora-for-sdxl")
|
| 55 |
pipeline.enable_model_cpu_offload()
|
| 56 |
init_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
|