File size: 1,983 Bytes
8ab0231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
license: cc-by-nc-4.0
task_categories:
- image-segmentation
- object-detection
tags:
- topological-error-detection
- topology
- computer-vision
- satellite-imagery
pretty_name: TopoAgent Dataset
size_categories:
- 10K<n<100K
---

# TopoAgent Dataset

This dataset contains training and validation data for the TopoAgent project, which focuses on detecting topological errors in segmentation masks.

## Dataset Structure

This dataset includes the following directories:

- `rft_v2/` - 56.37 KB

## Data Format

The dataset contains JSON files with annotations in the following format:

```json
{
  "id": "example_id",
  "image": [
    "path/to/original.png",
    "path/to/mask.png"
  ],
  "conversations": [
    {
      "from": "human",
      "value": "<image>\n<image>\n[prompt]"
    },
    {
      "from": "gpt",
      "value": "<answer>[annotations]</answer>"
    }
  ]
}
```

## Path Configuration

The JSON files contain absolute paths starting with `/data/meilong/projects/topoagent/`. 

To use this dataset on your local machine:

1. Download the dataset
2. Use the `replace_paths.py` script to update paths:

```bash
python replace_paths.py \
    --input downloaded_file.json \
    --output updated_file.json \
    --old-prefix "/data/meilong/projects/topoagent/" \
    --new-prefix "/your/local/path/"
```

## Error Types

The dataset includes annotations for four types of topological errors:

1. **broken_connection**: Missing connections between segments
2. **spurious_connection**: False connections in the segmentation
3. **missing_branch**: Branches that should exist but are missing
4. **extra_branch**: Branches that shouldn't exist but are present

## Citation

If you use this dataset, please cite:

```bibtex
@dataset{topoagent_dataset,
  title={TopoAgent Dataset},
  author={Your Name},
  year={2026},
  publisher={Hugging Face},
  url={https://huggingface.co/datasets/LucasSaiGao/src}
}
```

## License

This dataset is released under CC-BY-NC-4.0 license.