November-Rain commited on
Commit
0fbcad6
·
verified ·
1 Parent(s): cbf2b83

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +43 -7
README.md CHANGED
@@ -65,24 +65,60 @@ The `images` field in each sample contains URLs to visual representations of the
65
  pip install -r requirements.txt
66
  ```
67
 
68
- 3. **Run the image generation script:**
 
 
69
  ```bash
70
- python generate_images.py --input_path /path/to/dataset.json --output_dir ./images
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  ```
72
 
73
- 4. **Upload generated images to a hosting service** (e.g., GitHub, Imgur, or cloud storage) and collect the URLs.
74
 
75
- 5. **Update the JSON files** by replacing the empty `images` array with the actual image URLs:
76
  ```json
77
  {
78
  "images": [
79
- "https://example.com/plot_image.png",
80
- "https://example.com/grid_image.png"
81
  ]
82
  }
83
  ```
84
 
85
- The `data_convert` folder contains scripts for generating both time series plots and high-density numeric grid visualizations that correspond to the `2img_prompt` instructions.
 
 
 
86
 
87
  ## File Organization
88
 
 
65
  pip install -r requirements.txt
66
  ```
67
 
68
+ 3. **Run the appropriate conversion script based on dataset level:**
69
+
70
+ **For Level 1 datasets:**
71
  ```bash
72
+ python data_convert_l1.py \
73
+ --input /path/to/level1_train.json \
74
+ --output /path/to/level1_train_with_images.json \
75
+ --plot_dir ./images/plots \
76
+ --num_dir ./images/numeric \
77
+ --plot_prefix "https://your-hosting.com/images/plots" \
78
+ --num_prefix "https://your-hosting.com/images/numeric" \
79
+ --sample_ratio 1.0
80
+ ```
81
+
82
+ **For Level 2 datasets:**
83
+ ```bash
84
+ python data_convert_l2.py \
85
+ --input /path/to/level2_train.json \
86
+ --output /path/to/level2_train_with_images.json \
87
+ --plot_dir ./images/plots \
88
+ --num_dir ./images/numeric \
89
+ --plot_prefix "https://your-hosting.com/images/plots" \
90
+ --num_prefix "https://your-hosting.com/images/numeric" \
91
+ --sample_ratio 1.0
92
+ ```
93
+
94
+ **For Level 3 datasets:**
95
+ ```bash
96
+ python data_convert_l3.py \
97
+ --input /path/to/level3_train.json \
98
+ --output /path/to/level3_train_with_images.json \
99
+ --plot_dir ./images/plots \
100
+ --num_dir ./images/numeric \
101
+ --plot_prefix "https://your-hosting.com/images/plots" \
102
+ --num_prefix "https://your-hosting.com/images/numeric" \
103
+ --sample_ratio 1.0
104
  ```
105
 
106
+ 4. **Upload generated images to a hosting service** (e.g., GitHub, Imgur, or cloud storage) and update the URL prefixes in the commands above.
107
 
108
+ 5. **The output JSON files will have the `images` field populated** with the correct URLs:
109
  ```json
110
  {
111
  "images": [
112
+ "https://your-hosting.com/images/plots/plot_1.png",
113
+ "https://your-hosting.com/images/numeric/num_1.png"
114
  ]
115
  }
116
  ```
117
 
118
+ **Notes:**
119
+ - Each script generates two types of images per sample: trend plots (`plot_*.png`) and high-density numeric grids (`num_*.png`)
120
+ - Use `--sample_ratio 1.0` to process all samples (default is 0.5)
121
+ - The scripts automatically update the `prompt` and `answer` fields based on the dataset level requirements
122
 
123
  ## File Organization
124