Skip to content

urban-toolkit/reveal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Reveal - Setup

πŸ“¦ Data Setup

  1. Preprocess Your Dataset

    Go to the Reveal Preprocessing Repository
    and follow the steps there to preprocess your dataset.

  2. Organize the Backend Dataset Structure

    After completing preprocessing, navigate to your Reveal backend folder and create the following structure:

/back/
β”œβ”€β”€ dataset/
β”‚   β”œβ”€β”€ llm/
β”‚   β”‚   β”œβ”€β”€ processed/
β”‚   β”‚   β”‚   β”œβ”€β”€ 0.jpg
β”‚   β”‚   β”‚   β”œβ”€β”€ 1.jpg
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   └── thumbnails/
β”‚   β”‚       β”œβ”€β”€ 0.jpg
β”‚   β”‚       β”œβ”€β”€ 1.jpg
β”‚   β”‚       └── ...
β”‚   └── files/
β”‚       β”œβ”€β”€ unique_words_final.json
β”‚       β”œβ”€β”€ data_final.json
β”‚       β”œβ”€β”€ multi_clip_images_embedding.pt
β”‚       β”œβ”€β”€ multi_clip_words_embedding.pt
β”‚       └── multi_clip_joint_embedding.pt

βœ… Make sure:

  • All .jpg files are named using their numeric IDs (0.jpg, 1.jpg, etc.).
  • The JSON and .pt files come directly from the Reveal Preprocessing output.

βš™οΈ Installation

1. Prerequisites

Ensure you have the following installed:

  • Node.js (v22.13.0 recommended)
  • yarn (npm install -g yarn)
  • Angular CLI (v14.1.0)
  • Python (3.9+)
  • conda (recommended for managing the backend environment)

2. Frontend Setup

# Navigate to the frontend folder
cd front

# Install dependencies with yarn (not npm)
yarn install

# Run the frontend
ng serve

Once it compiles successfully, open your browser and visit: πŸ‘‰ http://localhost:4200

3. Backend Setup

# Open a new terminal
cd back

# Create and activate a conda environment
conda create -n reveal python=3.9 -y
conda activate reveal

# Install dependencies
pip install -r requirements.txt

# Run the backend server
python app.py

The backend will start running.

🧠 Troubleshooting

Angular not recognized?

Install it globally:

npm install -g @angular/cli@14.1.0

Missing Node version?

Install Node using nvm:

nvm install 22.13.0
nvm use 22.13.0

Backend cannot find dataset files?

Double-check that your directory structure exactly matches the layout shown above and that filenames are consistent with the preprocessing output.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published