Text-to-Image
Diffusers
Safetensors
stable-diffusion
stable-diffusion-diffusers
controlnet
diffusers-training
Instructions to use RiddleHe/SD14_pathology_controlnet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use RiddleHe/SD14_pathology_controlnet with Diffusers:
pip install -U diffusers transformers accelerate
from diffusers import ControlNetModel, StableDiffusionControlNetPipeline controlnet = ControlNetModel.from_pretrained("RiddleHe/SD14_pathology_controlnet") pipe = StableDiffusionControlNetPipeline.from_pretrained( "CompVis/stable-diffusion-v1-4,RiddleHe/SD14_pathology_lora", controlnet=controlnet ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -37,9 +37,8 @@ prompt: An image of breast cancer histopathology with detailed cellular structur
|
|
| 37 |
```python
|
| 38 |
controlnet = ControlNetModel.from_pretrained("RiddleHe/SD14_pathology_controlnet", torch_dtype=torch.float16)
|
| 39 |
pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
| 40 |
-
"
|
| 41 |
)
|
| 42 |
-
pipe.load_lora_weights("RiddleHe/SD14_pathology_lora") # Load lora weights for pathology image generation
|
| 43 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
| 44 |
pipe.to('cuda')
|
| 45 |
|
|
|
|
| 37 |
```python
|
| 38 |
controlnet = ControlNetModel.from_pretrained("RiddleHe/SD14_pathology_controlnet", torch_dtype=torch.float16)
|
| 39 |
pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
| 40 |
+
"RiddleHe/SD14_pathology_base", controlnet=controlnet, torch_dtype=torch.float16
|
| 41 |
)
|
|
|
|
| 42 |
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
| 43 |
pipe.to('cuda')
|
| 44 |
|