patrickvonplaten commited on
Commit
7cc75c3
1 Parent(s): 03c0c42

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -3
README.md CHANGED
@@ -6,8 +6,14 @@ tags:
6
 
7
  ```python
8
  from diffusers import DiffusionPipeline
 
9
 
10
- pipe = DiffusionPipeline.from_pretrained("hf-internal-testing/tiny-stable-diffusion-xl-pipe")
11
- ```
 
12
 
13
- The pipeline was created using this [Colab Notebook](https://colab.research.google.com/gist/sayakpaul/a7b986af7e9ea26562eed4ec1410d766/scratchpad.ipynb).
 
 
 
 
 
6
 
7
  ```python
8
  from diffusers import DiffusionPipeline
9
+ pipeline = DiffusionPipeline.from_pretrained("hf-internal-testing/tiny-sdxl-custom-all", trust_remote_code=True)
10
 
11
+ assert pipeline.config.unet == ('diffusers_modules.local.my_unet_model', 'MyUNetModel')
12
+ assert pipeline.config.scheduler == ('diffusers_modules.local.my_scheduler', 'MyScheduler')
13
+ assert pipeline.__class__.__name__ == "MyPipeline"
14
 
15
+ pipeline = pipeline.to(torch_device)
16
+ images = pipeline("test", num_inference_steps=2, output_type="np")[0]
17
+
18
+ assert images.shape == (1, 64, 64, 3)
19
+ ```