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 |
|