yulu2 commited on
Commit
8fa2b50
1 Parent(s): d35a13b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -2
README.md CHANGED
@@ -40,7 +40,6 @@ def download_image(url):
40
  image = image.convert("RGB")
41
  return image
42
 
43
-
44
  image = download_image(URL)
45
  seed = random.randint(0, 100000)
46
  generator = torch.manual_seed(seed)
@@ -52,6 +51,6 @@ height = int((height * factor) // 64) * 64
52
  image = ImageOps.fit(image, (width, height), method=Image.Resampling.LANCZOS)
53
 
54
  prompt = "Detect the person."
55
- images = pipe(prompt, image=image, num_inference_steps=100, generator=generator).images
56
  images[0]
57
  ```
 
40
  image = image.convert("RGB")
41
  return image
42
 
 
43
  image = download_image(URL)
44
  seed = random.randint(0, 100000)
45
  generator = torch.manual_seed(seed)
 
51
  image = ImageOps.fit(image, (width, height), method=Image.Resampling.LANCZOS)
52
 
53
  prompt = "Detect the person."
54
+ images = pipe(prompt, image=image, num_inference_steps=100, generator=generator).images[0]
55
  images[0]
56
  ```