# alexjjjchen/climate-zoo architecture

> Architecture diagram of the GitHub repository alexjjjchen/climate-zoo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alexjjjchen/climate-zoo
- Repository: https://github.com/alexjjjchen/climate-zoo

## Overview

Climate-Zoo is a research project for meteorological heatmap visual question answering. Its documented workflow uses SPOT to extract spatial cues from irregular colored regions, builds the ClimateIQA dataset, fine-tunes vision-language models, and runs inference with base or fine-tuned checkpoints. The README also describes four question types and four weather-analysis topics. Source excerpts contain no implementation code, so the graph reflects documented capabilities and the visible script paths; relationships are supported by the README rather than inspected script contents.

Main entry points: [`infer/infer_finetune.sh`](https://github.com/alexjjjchen/climate-zoo/blob/main/infer/infer_finetune.sh) (Fine-tuned inference), [`finetune/finetune_full.sh`](https://github.com/alexjjjchen/climate-zoo/blob/main/finetune/finetune_full.sh) (Full fine-tuning), [`finetune/finetune_lora.sh`](https://github.com/alexjjjchen/climate-zoo/blob/main/finetune/finetune_lora.sh) (LoRA fine-tuning), [`infer/infer_base.sh`](https://github.com/alexjjjchen/climate-zoo/blob/main/infer/infer_base.sh) (Base inference)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Dataset and SPOT"]
  node_heatmaps["Heatmap images"]
  node_spot["SPOT localization"]
  node_climateiqa[("ClimateIQA")]
  node_qa_types["QA categories"]
  node_weather_topics["Weather topics"]
end

subgraph group_models["Model training"]
  node_full_tune["Full fine-tuning<br/>[finetune_full.sh]"]
  node_lora_tune["LoRA fine-tuning<br/>[finetune_lora.sh]"]
  node_climate_zoo["Climate-Zoo models"]
end

subgraph group_inference["Inference"]
  node_base_infer["Base inference<br/>[infer_base.sh]"]
  node_tuned_infer["Fine-tuned inference<br/>[infer_finetune.sh]"]
  node_answers["VQA results"]
end

node_researcher(("Researcher"))

node_researcher -->|"provides"| node_heatmaps
node_heatmaps -->|"localizes regions"| node_spot
node_spot -->|"adds spatial cues"| node_climateiqa
node_climateiqa -->|"organizes questions"| node_qa_types
node_climateiqa -->|"covers topics"| node_weather_topics
node_climateiqa -->|"trains on"| node_full_tune
node_climateiqa -->|"trains on"| node_lora_tune
node_full_tune -->|"fine-tunes"| node_climate_zoo
node_lora_tune -->|"fine-tunes"| node_climate_zoo
node_researcher -->|"runs"| node_base_infer
node_researcher -->|"runs"| node_tuned_infer
node_climate_zoo -->|"supplies checkpoint"| node_tuned_infer
node_base_infer -->|"produces"| node_answers
node_tuned_infer -->|"produces"| node_answers

click node_full_tune "https://github.com/alexjjjchen/climate-zoo/blob/main/finetune/finetune_full.sh"
click node_lora_tune "https://github.com/alexjjjchen/climate-zoo/blob/main/finetune/finetune_lora.sh"
click node_base_infer "https://github.com/alexjjjchen/climate-zoo/blob/main/infer/infer_base.sh"
click node_tuned_infer "https://github.com/alexjjjchen/climate-zoo/blob/main/infer/infer_finetune.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_heatmaps,node_spot,node_climateiqa,node_qa_types,node_weather_topics toneBlue
class node_full_tune,node_lora_tune,node_climate_zoo toneAmber
class node_base_infer,node_tuned_infer,node_answers toneMint
class node_researcher toneIndigo
```

## Components

### Dataset and SPOT

- **Heatmap images**
- **SPOT localization**
- **ClimateIQA**
- **QA categories**
- **Weather topics**

### Model training

- [Full fine-tuning](https://github.com/alexjjjchen/climate-zoo/blob/main/finetune/finetune_full.sh): `finetune/finetune_full.sh`
- [LoRA fine-tuning](https://github.com/alexjjjchen/climate-zoo/blob/main/finetune/finetune_lora.sh): `finetune/finetune_lora.sh`
- **Climate-Zoo models**

### Inference

- [Base inference](https://github.com/alexjjjchen/climate-zoo/blob/main/infer/infer_base.sh): `infer/infer_base.sh`
- [Fine-tuned inference](https://github.com/alexjjjchen/climate-zoo/blob/main/infer/infer_finetune.sh): `infer/infer_finetune.sh`
- **VQA results**

### Other components

- **Researcher**

## Connections

- Researcher → Heatmap images: provides (evidence: `README.md`)
- Heatmap images → SPOT localization: localizes regions (evidence: `README.md`)
- SPOT localization → ClimateIQA: adds spatial cues (evidence: `README.md`)
- ClimateIQA → QA categories: organizes questions (evidence: `README.md`)
- ClimateIQA → Weather topics: covers topics (evidence: `README.md`)
- ClimateIQA → Full fine-tuning: trains on (evidence: `README.md`)
- ClimateIQA → LoRA fine-tuning: trains on (evidence: `README.md`)
- Full fine-tuning → Climate-Zoo models: fine-tunes (evidence: `README.md`)
- LoRA fine-tuning → Climate-Zoo models: fine-tunes (evidence: `README.md`)
- Researcher → Base inference: runs (evidence: `README.md`)
- Researcher → Fine-tuned inference: runs (evidence: `README.md`)
- Climate-Zoo models → Fine-tuned inference: supplies checkpoint (evidence: `README.md`)
- Base inference → VQA results: produces (evidence: `README.md`)
- Fine-tuned inference → VQA results: produces (evidence: `README.md`)
