This is the source code of the prototype version of the MINERVAS system.

# Deploy and Run

To build the system, please run Docker in this folder with the Dockerfile to set up the executable environment.

## Requirements

1. Docker CE with nvidia-docker plugin (https://github.com/nvidia/nvidia-docker).

## Usage

1. `unzip data.zip`

2. ```
   # build docker image
   sudo docker build . -f dockerfiles/Dockerfile-nv -t minervas-lit
   
   # docker run
   sudo docker run --runtime=nvidia -it -p 8000:8000 minervas-lit
   ```

3. The system will start a web service at port 8000. Please open a browser and go to '{server's IP}:8000' (if you run docker in localhost, go to '127.0.0.1:8000').

4. The UI is shown as :
![](./img/UI.png) 
The user first inputs three DSL files as shown in the figure, and then clicks the run button to generate synthetic images.

5. Once these images have been generated, the user could download the data by clicking the 'result' button. ![](./img/res.png) 

## DSL

We provide some example codes for this prototype system in `./DSL`. Please refer to the DSL documentation for more details.