goldpulpy commited on
Commit
4d40d70
1 Parent(s): e86134e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -64,22 +64,22 @@ def predict(image, mask_image, strength=1, steps=100):
64
  negative_prompt=negative_prompt,#Negative prompt
65
  strength=strength, #Strength (0.1 - 1)
66
  num_inference_steps=steps, #Generation steps
67
- image=image, #PIL obj
68
- mask_image=mask_image, #PIL obj
69
  generator=generator, #Generator
70
  num_images_per_prompt=1, #Image per predict
71
  ).images
72
 
73
  return result
74
 
75
- #Open image preprocessing and other operations
76
  image = ... #PIL Image 512x512
77
  mask = ... #PIL black and white mask image 512x512
78
 
79
  #Forward and getting results
80
  image = predict(image,mask)[0] #result <- [array num_images_per_prompt](take the first image index: 0)
81
 
82
- image #PIL Obj with the result of model generation
83
 
84
  ```
85
 
 
64
  negative_prompt=negative_prompt,#Negative prompt
65
  strength=strength, #Strength (0.1 - 1)
66
  num_inference_steps=steps, #Generation steps
67
+ image=image, #PIL Image obj
68
+ mask_image=mask_image, #PIL Image obj
69
  generator=generator, #Generator
70
  num_images_per_prompt=1, #Image per predict
71
  ).images
72
 
73
  return result
74
 
75
+ #Open image, pre-processing and other operations, must get image, mask : PIL Image Obj
76
  image = ... #PIL Image 512x512
77
  mask = ... #PIL black and white mask image 512x512
78
 
79
  #Forward and getting results
80
  image = predict(image,mask)[0] #result <- [array num_images_per_prompt](take the first image index: 0)
81
 
82
+ image #PIL Image Obj with the result of model generation
83
 
84
  ```
85