Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -50,6 +50,40 @@ Each sample contains:
|
|
| 50 |
- **answer_1/answer_2**: Alternative answer formats
|
| 51 |
- **images**: URLs to corresponding plot and numeric grid images
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
## File Organization
|
| 54 |
|
| 55 |
```
|
|
|
|
| 50 |
- **answer_1/answer_2**: Alternative answer formats
|
| 51 |
- **images**: URLs to corresponding plot and numeric grid images
|
| 52 |
|
| 53 |
+
## Image Generation
|
| 54 |
+
|
| 55 |
+
The `images` field in each sample contains URLs to visual representations of the time series data. To generate these images and populate the `images` field:
|
| 56 |
+
|
| 57 |
+
1. **Clone the data conversion repository:**
|
| 58 |
+
```bash
|
| 59 |
+
git clone https://github.com/RainingNovember/LLaTiSA.git
|
| 60 |
+
cd LLaTiSA/data_convert
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
2. **Install required dependencies:**
|
| 64 |
+
```bash
|
| 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 |
|
| 89 |
```
|