YiYiXu HF Staff commited on
Commit
1c1d540
·
verified ·
1 Parent(s): 6d8a836

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -5
README.md CHANGED
@@ -33,8 +33,8 @@ output = image_annotator(
33
  annotation_task="<REFERRING_EXPRESSION_SEGMENTATION>",
34
  annotation_prompt="the car",
35
  annotation_output_type="mask_image",
36
- )
37
- output.mask_image[0].save("car-mask.png")
38
  ```
39
 
40
  ### Compose with Inpainting Pipeline
@@ -65,9 +65,8 @@ output = pipe(
65
  annotation_prompt="the car",
66
  annotation_output_type="mask_image",
67
  num_inference_steps=30,
68
- output="images"
69
- )
70
- output[0].save("inpainted-car.png")
71
  ```
72
 
73
  ## Supported Tasks
 
33
  annotation_task="<REFERRING_EXPRESSION_SEGMENTATION>",
34
  annotation_prompt="the car",
35
  annotation_output_type="mask_image",
36
+ ).images[0]
37
+ output.save("car-mask.png")
38
  ```
39
 
40
  ### Compose with Inpainting Pipeline
 
65
  annotation_prompt="the car",
66
  annotation_output_type="mask_image",
67
  num_inference_steps=30,
68
+ ).images[0]
69
+ output.save("inpainted-car.png")
 
70
  ```
71
 
72
  ## Supported Tasks