SuleBai commited on
Commit
2e40c7f
·
1 Parent(s): cd2154f
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -18,30 +18,30 @@ processor = AutoProcessor.from_pretrained(model_path, max_pixels=401408)
18
 
19
  # Keep the original examples content unchanged
20
  examples = {
21
- "Reasoning 1": {
22
  "images": ["./demo_img/case046_r.png", "./demo_img/case046_1.png"],
23
  "instruction": "Locate the one appropriate object in Image-2 that can rotate the object of Image-1. Find it and locate it in the second image. ",
24
  },
25
- "Reasoning 2": {
26
- "images": ["./demo_img/case044_r.png", "./demo_img/case044_2.png"],
27
- "instruction": "Considering the feature presented in Image-1, which object on the table of Image-2 may the child mostly skilled at? Find it and locate it in the second image. ",
28
- },
29
- "Reasoning 3": {
30
- "images": ["./demo_img/case096_1.png", "./demo_img/case096_2.png"],
31
- "instruction": "Which item in Image-2 can be worn on Image-1? Please find this object in Image-2. Find it and locate it in the second image. ",
32
- },
33
- "Correspondence 1": {
34
  "images": ["./demo_img/case039_1.jpg", "./demo_img/case039_2.jpg"],
35
  "instruction": "You are now presented with two objects. For the area marked by the red bounding box in the first image, identify and locate the corresponding area in the second image that serves a similar function or shares a similar meaning. ",
36
  },
37
- "Correspondence 2": {
38
- "images": ["./demo_img/case076_1.jpg", "./demo_img/case076_2.jpg"],
39
- "instruction": "You are now presented with two objects. For the area marked by the red bounding box in the first image, identify and locate the corresponding area in the second image that serves a similar function or shares a similar meaning. ",
40
- },
41
- "Correspondence 3": {
42
- "images": ["./demo_img/case050_r.jpg", "./demo_img/case050_1.jpg"],
43
- "instruction": "You are now presented with two objects. For the area marked by the red bounding box in the first image, identify and locate the corresponding area in the second image that serves a similar function or shares a similar meaning. ",
44
- },
45
  "Difference": {
46
  "images": ["./demo_img/DSC_2185.jpg", "./demo_img/DSC_2184.jpg"],
47
  "instruction": "Compare these two images carefully and give me the coordinates of their real difference in the second image. Find it and locate it in the second image.",
 
18
 
19
  # Keep the original examples content unchanged
20
  examples = {
21
+ "Reasoning": {
22
  "images": ["./demo_img/case046_r.png", "./demo_img/case046_1.png"],
23
  "instruction": "Locate the one appropriate object in Image-2 that can rotate the object of Image-1. Find it and locate it in the second image. ",
24
  },
25
+ # "Reasoning 2": {
26
+ # "images": ["./demo_img/case044_r.png", "./demo_img/case044_2.png"],
27
+ # "instruction": "Considering the feature presented in Image-1, which object on the table of Image-2 may the child mostly skilled at? Find it and locate it in the second image. ",
28
+ # },
29
+ # "Reasoning 3": {
30
+ # "images": ["./demo_img/case096_1.png", "./demo_img/case096_2.png"],
31
+ # "instruction": "Which item in Image-2 can be worn on Image-1? Please find this object in Image-2. Find it and locate it in the second image. ",
32
+ # },
33
+ "Correspondence": {
34
  "images": ["./demo_img/case039_1.jpg", "./demo_img/case039_2.jpg"],
35
  "instruction": "You are now presented with two objects. For the area marked by the red bounding box in the first image, identify and locate the corresponding area in the second image that serves a similar function or shares a similar meaning. ",
36
  },
37
+ # "Correspondence 2": {
38
+ # "images": ["./demo_img/case076_1.jpg", "./demo_img/case076_2.jpg"],
39
+ # "instruction": "You are now presented with two objects. For the area marked by the red bounding box in the first image, identify and locate the corresponding area in the second image that serves a similar function or shares a similar meaning. ",
40
+ # },
41
+ # "Correspondence 3": {
42
+ # "images": ["./demo_img/case050_r.jpg", "./demo_img/case050_1.jpg"],
43
+ # "instruction": "You are now presented with two objects. For the area marked by the red bounding box in the first image, identify and locate the corresponding area in the second image that serves a similar function or shares a similar meaning. ",
44
+ # },
45
  "Difference": {
46
  "images": ["./demo_img/DSC_2185.jpg", "./demo_img/DSC_2184.jpg"],
47
  "instruction": "Compare these two images carefully and give me the coordinates of their real difference in the second image. Find it and locate it in the second image.",