mrm8488 commited on
Commit
8b1577c
1 Parent(s): 63e39f0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -2
README.md CHANGED
@@ -10,7 +10,7 @@ metrics: []
10
  <!-- This model card has been generated automatically according to the information the training script had access to. You
11
  should probably proofread and complete it, then remove this comment. -->
12
 
13
- # ddpm-ema-anime-64
14
 
15
  ## Model description
16
 
@@ -22,7 +22,18 @@ on the `huggan/selfie2anime` dataset.
22
  #### How to use
23
 
24
  ```python
25
- # TODO: add an example code snippet for running this diffusion pipeline
 
 
 
 
 
 
 
 
 
 
 
26
  ```
27
 
28
  #### Limitations and bias
 
10
  <!-- This model card has been generated automatically according to the information the training script had access to. You
11
  should probably proofread and complete it, then remove this comment. -->
12
 
13
+ # ddpm-ema-anime-128
14
 
15
  ## Model description
16
 
 
22
  #### How to use
23
 
24
  ```python
25
+ from diffusers import DDPMPipeline
26
+
27
+ model_id = "mrm8488/ddpm-ema-anime-128"
28
+
29
+ # load model and scheduler
30
+ pipeline = DDPMPipeline.from_pretrained(model_id)
31
+
32
+ # run pipeline in inference
33
+ image = pipeline()["sample"]
34
+
35
+ # save image
36
+ image[0].save("anime_face.png")
37
  ```
38
 
39
  #### Limitations and bias