2toINF commited on
Commit
62187c4
1 Parent(s): 6efd3f5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -22
README.md CHANGED
@@ -1,4 +1,3 @@
1
-
2
  ## Quick Start
3
 
4
  ### Install
@@ -21,25 +20,13 @@ pip install -e .
21
  ### Usage
22
 
23
  ```python
24
- from IVM import load
25
- from PIL import Image
26
-
27
  model = load(ckpt_path, low_gpu_memory = False) # Set `low_gpu_memory=True` if you don't have enough GPU Memory
28
-
29
- image = Image.open("image/demo/robot.jpg")
30
- instruction = "pick up the red cup"
31
-
32
- result = model.forward_batch([image], [instruction])
33
- '''
34
- result content:
35
- 'soft': heatmap
36
- 'bbox': crop bbox
37
- 'blur_image': rbg
38
- 'highlight_image': rbg
39
- 'cropped_blur_img': rgb
40
- 'cropped_highlight_img': rgb
41
- 'alpha_image': rgba
42
- '''
43
-
44
-
45
- ```
 
 
1
  ## Quick Start
2
 
3
  ### Install
 
20
  ### Usage
21
 
22
  ```python
23
+ from IVM import load, forward_batch
24
+ ckpt_path = "IVM-V1.0.bin" # your model path here
 
25
  model = load(ckpt_path, low_gpu_memory = False) # Set `low_gpu_memory=True` if you don't have enough GPU Memory
26
+ image = Image.open("image/demo/robot.jpg") # your image path
27
+ instruction = "pick up the red cup and place it on the green pan"
28
+ result = forward_batch(model, [image], [instruction], threshold = 0.99)
29
+ from matplotlib import pyplot as plt
30
+ import numpy as np
31
+ plt.imshow((result[0]).astype(np.uint8))
32
+ ```