update
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +1 -0
- README.md +35 -0
- data/prompt-placer +19 -0
- data/prompt-searcher +11 -0
- data/prompt-searcher-checking-dot +10 -0
- data/prompt-searcher-checking-mask +12 -0
- dataset/00000/0.png +3 -0
- dataset/00000/1.png +3 -0
- dataset/00000/2.png +3 -0
- dataset/00000/3.png +3 -0
- dataset/00000/4.png +3 -0
- dataset/00000/correct.json +26 -0
- dataset/00001/0.png +3 -0
- dataset/00001/1.png +3 -0
- dataset/00001/2.png +3 -0
- dataset/00001/3.png +3 -0
- dataset/00001/4.png +3 -0
- dataset/00001/correct.json +26 -0
- dataset/00002/0.png +3 -0
- dataset/00002/1.png +3 -0
- dataset/00002/2.png +3 -0
- dataset/00002/3.png +3 -0
- dataset/00002/4.png +3 -0
- dataset/00002/correct.json +26 -0
- dataset/00003/0.png +3 -0
- dataset/00003/1.png +3 -0
- dataset/00003/2.png +3 -0
- dataset/00003/3.png +3 -0
- dataset/00003/4.png +3 -0
- dataset/00003/correct.json +26 -0
- dataset/00004/0.png +3 -0
- dataset/00004/1.png +3 -0
- dataset/00004/2.png +3 -0
- dataset/00004/3.png +3 -0
- dataset/00004/4.png +3 -0
- dataset/00004/correct.json +26 -0
- dataset/00005/0.png +3 -0
- dataset/00005/1.png +3 -0
- dataset/00005/2.png +3 -0
- dataset/00005/3.png +3 -0
- dataset/00005/4.png +3 -0
- dataset/00005/correct.json +26 -0
- dataset/00006/0.png +3 -0
- dataset/00006/1.png +3 -0
- dataset/00006/2.png +3 -0
- dataset/00006/3.png +3 -0
- dataset/00006/4.png +3 -0
- dataset/00006/correct.json +26 -0
- dataset/00007/0.png +3 -0
- dataset/00007/1.png +3 -0
.gitattributes
CHANGED
|
@@ -46,6 +46,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 46 |
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 48 |
# Image files - uncompressed
|
|
|
|
| 49 |
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 50 |
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 51 |
*.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 46 |
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 48 |
# Image files - uncompressed
|
| 49 |
+
*.svg filter=lfs diff=lfs merge=lfs -text
|
| 50 |
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
*.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
# AutoImagine-Puzzle Dataset Card
|
| 5 |
+
|
| 6 |
+
## Dataset Details
|
| 7 |
+
This dataset contains 22 image-based jigsaw puzzles created from real-world photographs. Each puzzle consists of irregular puzzle pieces that need to be assembled into the complete image.
|
| 8 |
+
|
| 9 |
+
## Dataset Structure
|
| 10 |
+
- `dataset` folder
|
| 11 |
+
- `00000` ~ `00010` folder
|
| 12 |
+
- Contains several puzzle pieces and their final positions. `0.png` is the puzzle with pieces removed, while `1.png` ~ `4.png` are **four** individual puzzle pieces. `correct.json` contains the ground truth positions of the puzzle pieces.
|
| 13 |
+
- `00011` ~ `00021` folder
|
| 14 |
+
- Contains several puzzle pieces and their final positions. `0.png` is the puzzle with pieces removed, while `1.png` ~ `6.png` are **six** individual puzzle pieces. `correct.json` contains the ground truth positions of the puzzle pieces.
|
| 15 |
+
- `src` folder
|
| 16 |
+
- Contains the source files for generating puzzle datasets. Each dataset (e.g., `00000`, `00001`) has a corresponding pair of files:
|
| 17 |
+
- `{dataset}.png`: Original image file that provides the visual content for the puzzle
|
| 18 |
+
- `{dataset}.svg`: SVG file defining the boundary paths for cutting the image into irregular puzzle pieces
|
| 19 |
+
- `data` folder
|
| 20 |
+
- Contains the prompts used for the autonomous imagination algorithm;
|
| 21 |
+
|
| 22 |
+
## Resources for More Information
|
| 23 |
+
- Paper: https://arxiv.org/pdf/2411.18142
|
| 24 |
+
- Code: https://github.com/future-item/autoimagine
|
| 25 |
+
|
| 26 |
+
## Citation
|
| 27 |
+
If you find our work helpful, please consider citing our paper.
|
| 28 |
+
```
|
| 29 |
+
@article{liu2024enhancing,
|
| 30 |
+
title={Enhancing visual reasoning with autonomous imagination in multimodal large language models},
|
| 31 |
+
author={Liu, Jingming and Li, Yumeng and Xiao, Boyuan and Jian, Yichang and Qin, Ziang and Shao, Tianjia and Ding, Yao-Xiang and Zhou, Kun},
|
| 32 |
+
journal={arXiv preprint arXiv:2411.18142},
|
| 33 |
+
year={2024}
|
| 34 |
+
}
|
| 35 |
+
```
|
data/prompt-placer
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are a master of puzzles. Now you are given an image of a jigsaw puzzle and please help me finish it!
|
| 2 |
+
|
| 3 |
+
In this task, you will receive a picture of an unfinished puzzle. The picture contains a nearly complete puzzle and 1 piece that have not yet been put into the whole.
|
| 4 |
+
|
| 5 |
+
You have selected a puzzle piece, indicated by a red outline. Now you need to move it into place so it fits into the nearly complete puzzle.
|
| 6 |
+
You should think step by step as follows.
|
| 7 |
+
1. Describe the contents of the highlighted puzzle piece.
|
| 8 |
+
2. Based on the analysis in step 1, point out the missing parts of the nearly completed puzzle and infer the contents of the missing parts based on the whole puzzle.
|
| 9 |
+
3. The highlighted piece is surrounded by at most four letters 'a', 'b', 'c' and 'd'. Based on the analysis above, you should choose the letter that is closest to the target position so that the highlighted piece can best fill in a missing black piece of the whole puzzle.
|
| 10 |
+
|
| 11 |
+
Since the image is edited, please ignore possible artifacts. The black background does not contain any puzzle-related content, please ignore it.
|
| 12 |
+
|
| 13 |
+
You should output the quoted letters in the last line, that is, ['a'], ['b'], ['c'] or ['d'].
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
data/prompt-searcher
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
In this task, you will receive a picture of an unfinished puzzle. The picture contains a nearly complete puzzle and several pieces that have not yet been put into the whole.
|
| 2 |
+
|
| 3 |
+
You should think step by step as follows.
|
| 4 |
+
|
| 5 |
+
1. Which of these individual puzzle pieces do you think fits best into the whole? Describe the contents and location of the puzzle pieces because letters on the image are NOT their labels!
|
| 6 |
+
|
| 7 |
+
2. There are four letters 'a', 'b', 'c' and 'd' painted in the image. Which letter is closest to the individual puzzle piece selected in step 1?
|
| 8 |
+
|
| 9 |
+
Since the image is edited, please ignore possible artifacts. The black background does not contain any puzzle-related content, please ignore it.
|
| 10 |
+
|
| 11 |
+
You should output the quoted letters in the last line, that is, ['a'], ['b'], ['c'] or ['d'].
|
data/prompt-searcher-checking-dot
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
In this task, you will receive a picture of an unfinished puzzle. The picture contains a nearly complete puzzle and several pieces that have not yet been put into the whole.
|
| 2 |
+
|
| 3 |
+
There is a small red circle in the picture. What you need to do is check if the red circle falls on one of the single puzzle pieces.
|
| 4 |
+
|
| 5 |
+
Note that you should output 'no' if the red circle falls on the nearly complete puzzle, which contains more than one piece.
|
| 6 |
+
If the circle falls on the edge of the object and you find it difficult to judge, you should output ['no'] as well.
|
| 7 |
+
|
| 8 |
+
Since the image is edited, please ignore possible artifacts. The black background does not contain any puzzle-related content, please ignore it.
|
| 9 |
+
|
| 10 |
+
You should output the check result result in the last line in format: ['yes'] or ['no'].
|
data/prompt-searcher-checking-mask
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
In this task, you need to check if there is a single puzzle piece in the image.
|
| 2 |
+
|
| 3 |
+
You should check one by one in the following order.
|
| 4 |
+
|
| 5 |
+
1. If the image is pure black and contains nothing, you should output 'no' and skip the following checks.
|
| 6 |
+
2. Otherwise, if the image shows a partially completed puzzle that contains multiple pieces, you should output 'no' and skip the following checks.
|
| 7 |
+
3. Otherwise, if the image contains only one puzzle piece, please output 'yes' and skip the following checks.
|
| 8 |
+
4. If the above points are not met, please output 'no'.
|
| 9 |
+
|
| 10 |
+
Since the image is edited, please ignore possible artifacts. The black background does not contain any puzzle-related content, please ignore it.
|
| 11 |
+
|
| 12 |
+
You should output the final conclusion on the last line in format: ['yes'] or ['no'].
|
dataset/00000/0.png
ADDED
|
Git LFS Details
|
dataset/00000/1.png
ADDED
|
Git LFS Details
|
dataset/00000/2.png
ADDED
|
Git LFS Details
|
dataset/00000/3.png
ADDED
|
Git LFS Details
|
dataset/00000/4.png
ADDED
|
Git LFS Details
|
dataset/00000/correct.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"id": 1,
|
| 4 |
+
"image": "1.png",
|
| 5 |
+
"gt_x": 350,
|
| 6 |
+
"gt_y": 69
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"id": 2,
|
| 10 |
+
"image": "2.png",
|
| 11 |
+
"gt_x": 448,
|
| 12 |
+
"gt_y": 86
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"id": 3,
|
| 16 |
+
"image": "3.png",
|
| 17 |
+
"gt_x": 338,
|
| 18 |
+
"gt_y": 201
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"id": 4,
|
| 22 |
+
"image": "4.png",
|
| 23 |
+
"gt_x": 451,
|
| 24 |
+
"gt_y": 201
|
| 25 |
+
}
|
| 26 |
+
]
|
dataset/00001/0.png
ADDED
|
Git LFS Details
|
dataset/00001/1.png
ADDED
|
Git LFS Details
|
dataset/00001/2.png
ADDED
|
Git LFS Details
|
dataset/00001/3.png
ADDED
|
Git LFS Details
|
dataset/00001/4.png
ADDED
|
Git LFS Details
|
dataset/00001/correct.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"id": 1,
|
| 4 |
+
"image": "1.png",
|
| 5 |
+
"gt_x": 150,
|
| 6 |
+
"gt_y": 185
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"id": 2,
|
| 10 |
+
"image": "2.png",
|
| 11 |
+
"gt_x": 250,
|
| 12 |
+
"gt_y": 188
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"id": 3,
|
| 16 |
+
"image": "3.png",
|
| 17 |
+
"gt_x": 150,
|
| 18 |
+
"gt_y": 318
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"id": 4,
|
| 22 |
+
"image": "4.png",
|
| 23 |
+
"gt_x": 259,
|
| 24 |
+
"gt_y": 317
|
| 25 |
+
}
|
| 26 |
+
]
|
dataset/00002/0.png
ADDED
|
Git LFS Details
|
dataset/00002/1.png
ADDED
|
Git LFS Details
|
dataset/00002/2.png
ADDED
|
Git LFS Details
|
dataset/00002/3.png
ADDED
|
Git LFS Details
|
dataset/00002/4.png
ADDED
|
Git LFS Details
|
dataset/00002/correct.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"id": 1,
|
| 4 |
+
"image": "1.png",
|
| 5 |
+
"gt_x": 63,
|
| 6 |
+
"gt_y": 212
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"id": 2,
|
| 10 |
+
"image": "2.png",
|
| 11 |
+
"gt_x": 159,
|
| 12 |
+
"gt_y": 200
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"id": 3,
|
| 16 |
+
"image": "3.png",
|
| 17 |
+
"gt_x": 51,
|
| 18 |
+
"gt_y": 329
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"id": 4,
|
| 22 |
+
"image": "4.png",
|
| 23 |
+
"gt_x": 148,
|
| 24 |
+
"gt_y": 315
|
| 25 |
+
}
|
| 26 |
+
]
|
dataset/00003/0.png
ADDED
|
Git LFS Details
|
dataset/00003/1.png
ADDED
|
Git LFS Details
|
dataset/00003/2.png
ADDED
|
Git LFS Details
|
dataset/00003/3.png
ADDED
|
Git LFS Details
|
dataset/00003/4.png
ADDED
|
Git LFS Details
|
dataset/00003/correct.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"id": 1,
|
| 4 |
+
"image": "1.png",
|
| 5 |
+
"gt_x": 61,
|
| 6 |
+
"gt_y": 197
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"id": 2,
|
| 10 |
+
"image": "2.png",
|
| 11 |
+
"gt_x": 159,
|
| 12 |
+
"gt_y": 215
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"id": 3,
|
| 16 |
+
"image": "3.png",
|
| 17 |
+
"gt_x": 249,
|
| 18 |
+
"gt_y": 186
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"id": 4,
|
| 22 |
+
"image": "4.png",
|
| 23 |
+
"gt_x": 351,
|
| 24 |
+
"gt_y": 186
|
| 25 |
+
}
|
| 26 |
+
]
|
dataset/00004/0.png
ADDED
|
Git LFS Details
|
dataset/00004/1.png
ADDED
|
Git LFS Details
|
dataset/00004/2.png
ADDED
|
Git LFS Details
|
dataset/00004/3.png
ADDED
|
Git LFS Details
|
dataset/00004/4.png
ADDED
|
Git LFS Details
|
dataset/00004/correct.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"id": 1,
|
| 4 |
+
"image": "1.png",
|
| 5 |
+
"gt_x": 315,
|
| 6 |
+
"gt_y": 202
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"id": 2,
|
| 10 |
+
"image": "2.png",
|
| 11 |
+
"gt_x": 420,
|
| 12 |
+
"gt_y": 188
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"id": 3,
|
| 16 |
+
"image": "3.png",
|
| 17 |
+
"gt_x": 286,
|
| 18 |
+
"gt_y": 332
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"id": 4,
|
| 22 |
+
"image": "4.png",
|
| 23 |
+
"gt_x": 407,
|
| 24 |
+
"gt_y": 318
|
| 25 |
+
}
|
| 26 |
+
]
|
dataset/00005/0.png
ADDED
|
Git LFS Details
|
dataset/00005/1.png
ADDED
|
Git LFS Details
|
dataset/00005/2.png
ADDED
|
Git LFS Details
|
dataset/00005/3.png
ADDED
|
Git LFS Details
|
dataset/00005/4.png
ADDED
|
Git LFS Details
|
dataset/00005/correct.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"id": 1,
|
| 4 |
+
"image": "1.png",
|
| 5 |
+
"gt_x": 63,
|
| 6 |
+
"gt_y": 70
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"id": 2,
|
| 10 |
+
"image": "2.png",
|
| 11 |
+
"gt_x": 180,
|
| 12 |
+
"gt_y": 68
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"id": 3,
|
| 16 |
+
"image": "3.png",
|
| 17 |
+
"gt_x": 312,
|
| 18 |
+
"gt_y": 81
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"id": 4,
|
| 22 |
+
"image": "4.png",
|
| 23 |
+
"gt_x": 311,
|
| 24 |
+
"gt_y": 197
|
| 25 |
+
}
|
| 26 |
+
]
|
dataset/00006/0.png
ADDED
|
Git LFS Details
|
dataset/00006/1.png
ADDED
|
Git LFS Details
|
dataset/00006/2.png
ADDED
|
Git LFS Details
|
dataset/00006/3.png
ADDED
|
Git LFS Details
|
dataset/00006/4.png
ADDED
|
Git LFS Details
|
dataset/00006/correct.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"id": 1,
|
| 4 |
+
"image": "1.png",
|
| 5 |
+
"gt_x": 165,
|
| 6 |
+
"gt_y": 85
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"id": 2,
|
| 10 |
+
"image": "2.png",
|
| 11 |
+
"gt_x": 418,
|
| 12 |
+
"gt_y": 84
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"id": 3,
|
| 16 |
+
"image": "3.png",
|
| 17 |
+
"gt_x": 522,
|
| 18 |
+
"gt_y": 68
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"id": 4,
|
| 22 |
+
"image": "4.png",
|
| 23 |
+
"gt_x": 421,
|
| 24 |
+
"gt_y": 214
|
| 25 |
+
}
|
| 26 |
+
]
|
dataset/00007/0.png
ADDED
|
Git LFS Details
|
dataset/00007/1.png
ADDED
|
Git LFS Details
|