Instructions to use fcy322/314554031-lab2-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use fcy322/314554031-lab2-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("CompVis/stable-diffusion-v1-4", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("fcy322/314554031-lab2-lora") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
NYCU Lab 2 β 314554031
Two trained UNet LoRA adapters for the course assignment. The base model is
CompVis/stable-diffusion-v1-4. These are adapter weights, not a full base model.
style/: four provided artistic-custom images, 100 epochs / 400 updates.identity/: four provided dreambooth-cat images, 500 updates.
Both use rank 4, learning rate 1e-4, resolution 512, and fp16 mixed precision.
See training_config.json for exact settings and dataset_manifest.json for
the supplied dataset paths, captions, and hashes.
Starter code and dataset source: https://github.com/Jing-En-Huang/Lab2-DDIM-LoRA
Download for grading
Download the corresponding 314554031_task2-1_lora.zip or
314554031_task2-2_lora.zip. Unzip, then use:
pipe.load_lora_weights("path/to/unzipped/folder")
With the Hub, load a specific subfolder:
pipe.load_lora_weights("fcy322/314554031-lab2-lora", subfolder="style")
# or subfolder="identity"
The instance prompt for the identity adapter is a photo of a sks cat.
- Downloads last month
- -
Model tree for fcy322/314554031-lab2-lora
Base model
CompVis/stable-diffusion-v1-4