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
Download main.py from feelatkeen/image-to-game: direct link, hf CLI and curl.
- Browser
- Download file 259 Bytes
-
https://huggingface.co/feelatkeen/image-to-game/resolve/main/main.py
- Command line
-
hf download hf://feelatkeen/image-to-game/main.py
-
curl -L -o main.py https://huggingface.co/feelatkeen/image-to-game/resolve/main/main.py
259 Bytes
| from diffusers import DiffusionPipeline | |
| pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0") | |
| pipeline.load_lora_weights("artificialguybr/ps1redmond-ps1-game-graphics-lora-for-sdxl") | |
| pipeline.enable_model_cpu_offload() | |