Update README.md
Browse files
README.md
CHANGED
|
@@ -27,7 +27,7 @@ from src import diffuser_training
|
|
| 27 |
|
| 28 |
device = 'cuda'
|
| 29 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 30 |
-
pipe = pipe.to(
|
| 31 |
|
| 32 |
weight_path = 'custom_diffusion_cat.bin'
|
| 33 |
diffuser_training.load_model(pipe.text_encoder, pipe.tokenizer, pipe.unet, weight_path, '<new1>')
|
|
|
|
| 27 |
|
| 28 |
device = 'cuda'
|
| 29 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 30 |
+
pipe = pipe.to(device)
|
| 31 |
|
| 32 |
weight_path = 'custom_diffusion_cat.bin'
|
| 33 |
diffuser_training.load_model(pipe.text_encoder, pipe.tokenizer, pipe.unet, weight_path, '<new1>')
|