Instructions to use Texttra/Cityscape_Studio with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Texttra/Cityscape_Studio with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Texttra/Cityscape_Studio") prompt = "c1t3, close up of severed head of a black woman with a fluorescent orange bob haircut with bangs and wearing amber square sunglasses, being held to the side, harsh fill in flash lighting, dark spooky forest background " image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -15,7 +15,7 @@ class EndpointHandler:
|
|
| 15 |
)
|
| 16 |
|
| 17 |
# Load your LoRA weights from the repo
|
| 18 |
-
self.pipe.load_lora_weights(
|
| 19 |
|
| 20 |
# Move to GPU if available
|
| 21 |
if torch.cuda.is_available():
|
|
|
|
| 15 |
)
|
| 16 |
|
| 17 |
# Load your LoRA weights from the repo
|
| 18 |
+
self.pipe.load_lora_weights(path, weight_name="c1t3_v1.safetensors")
|
| 19 |
|
| 20 |
# Move to GPU if available
|
| 21 |
if torch.cuda.is_available():
|