A newer version of the Gradio SDK is available:
5.42.0
metadata
title: IndexRL
emoji: π₯
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 3.35.2
python_version: 3.8.9
app_file: app.py
pinned: false
license: mit
IndexRLApp
Gradio app to generate remote sensing indices for properties defined by image-mask pairs.
How to Install
IndexRL can be installed using the following two commands. However, it is recommended that you create a virtual environment prior to pip installation.
pip install -r requirements.txt
python app.py
Upload a Dataset
- Set up the file structure of your dataset as follows.
.
βββ dataset/
βββ images/
β βββ img1.npy
β βββ img2.npy
β βββ ...
βββ masks/
βββ mask1.npy
βββ mask2.npy
βββ ...
- Create a zip file for the dataset
cd dataset
zip -r dataset.zip *
- Go to the
Datasets
tab on IndexRL, upload the created zip file, give a name for the dataset, and press theUpload
button.
Generate Remote Sensing Indices
Go to the
Find Expressions
tab, select the dataset from the dropdown and click theFind Expressions
button. With time, more and more expressions will be generated.Obtain the top 5 expressions from the
Best Expressions
box.Visualize and debug the expression search tree from the panels on the right.
Iteration
refers to each generated expression.Tree Number
refers to the index of the expression tree that resulted in the selection of each symbol of the expression.Expression Tree
displays the tree of symbols explored by the RL agent and the scores observed if each of those symbols were chosen. As you change theTree Number
, you can observe how the tree for the next choice of symbol.