aires_api

This is the GitHub repository of the code employed in Section 5 of the Article "A cloud-native application for digital restoration of Cultural Heritage using nuclear imaging: the AIRES-CH project App", Alessandro Bombini, Fernando Garcìa Avello-Bofìas, Chiara Ruberto, Francesco Taccetti, submitted to MDPI/computers

https://github.com/androbomb/aires_api

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.9%) to scientific vocabulary

Keywords

api deep-learning deep-neural-networks research-paper research-project
Last synced: 10 months ago · JSON representation

Repository

This is the GitHub repository of the code employed in Section 5 of the Article "A cloud-native application for digital restoration of Cultural Heritage using nuclear imaging: the AIRES-CH project App", Alessandro Bombini, Fernando Garcìa Avello-Bofìas, Chiara Ruberto, Francesco Taccetti, submitted to MDPI/computers

Basic Info
  • Host: GitHub
  • Owner: androbomb
  • License: apache-2.0
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 65.7 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
api deep-learning deep-neural-networks research-paper research-project
Created about 4 years ago · Last pushed over 3 years ago
Metadata Files
Readme License Citation

Readme.md

Artificial Intelligence for digital REStoration of Cultural Heritage (AIRES) API

This is the GitHub repository of the code employed in Section 5 of the Article

A cloud-native application for digital restoration of Cultural Heritage using nuclear imaging: the AIRES-CH project App, Alessandro Bombini, Fernando Garca Avello-Bofas, Chiara Ruberto, Francesco Taccetti

submitted to MDPI/computers as extended version of the conference paper:

Bombini, A., Anderlini, L., dellAgnello, L., Giacomini, F., Ruberto, C., Taccetti, F. (2022). Hyperparameter Optimisation of Artificial Intelligence for Digital REStoration of Cultural Heritages (AIRES-CH) Models. In: Gervasi, O., Murgante, B., Misra, S., Rocha, A.M.A.C., Garau, C. (eds) Computational Science and Its Applications ICCSA 2022 Workshops. ICCSA 2022. Lecture Notes in Computer Science, vol 13377. Springer, Cham. https://doi.org/10.1007/978-3-031-10536-4_7

winner of the best paper award at the Workshop on Advancements in Applied Machine-learning and Data Analytics (AAMDA) workshop at the the 22nd International Conference on Computational Science and Its Applications (ICCSA 2022).

This repository build the RESTful API for serving the trained AIRES-CH DNN models.

The AIRES-CH DNNs are accessible for inference via the THESPIAN-XRF web app; the DNNs are furnished via a RESTful API offering three routes: 1. /1D/, to perform the recolouring inference using the 1D model described in sec. 3.3.2; 2. /2D/, to perform the recolouring inference using the 2D model described in sec. 3.2; 3. /pixel/, to perform single-pixel inference; this branch was developed for the goal of offering real-time recolouring during measurements.

Getting started Veloci Raptor 03/14/15 As easily understandable, one of the main features we expect from our RESTful API (and DNN models) is a fast reply time (a short inference time). In order to optimise this aspect, we developed three APIs, with three different frameworks: FastAPI, Flask and NodeJS.

For more details, we refer to the aforementioned papers.


Extra: Deployement infos

Env variables

NGINX

NGINXHOSTPORT=8443 NGINXCERT=./NGINX/cert NGINXROOT=./NGINX

Flask4NGINX vars

FLASKBASEURL=/flaskaires NGINXPROXYPASSFLASK=http://ip

CROW4NGINX vars

FLASK

In App

FLASKPORT=5999 FLASKHOST=0.0.0.0

NAMEOFIMAGEINFILE='img'

In Dockers

FLASKROOTDIR=./Flask WORKDIRPATH=/flaskapp

GUNICORNWORKERSPERCORE=1 GUNICORNWORKERCLASS=gthread GUNICORNTHREADS=4

CROW

AIRES MODELS

PATHTOAIRESMODELS=./AIRESMODELS/ NAMEAIRESMODEL1D=model1Dmultiinput.h5 NAMEAIRESMODEL2D=model2D.h5

Owner

  • Login: androbomb
  • Kind: user

GitHub Events

Total
Last Year

Dependencies

Fastapi/fastapi.docker-compose.yml docker
  • aires_fastapi_app_image latest
Flask/flask.docker-compose.yml docker
  • aires_flask_app_image latest
Nodejs/node.docker-compose.yml docker
  • aires_node_app_image_dev latest
Nodejs/node_deployement.docker-compose.yml docker
  • aires_node_app_image_dep latest
aires_full.docker-compose.yml docker
  • aires_fastapi_app_image latest
  • aires_flask_app_image latest
  • nginx 1.21.0
Nodejs/package-lock.json npm
  • 157 dependencies
Nodejs/package.json npm
  • nodemon ^2.0.2 development
  • cors ^2.8.5
  • debug ^4.3.4
  • dotenv ^16.0.1
  • express ^4.18.1
  • jsfive ^0.3.10
  • multer ^1.4.4
  • sharp ^0.30.7
Fastapi/requirements.txt pypi
  • Keras *
  • Keras-Preprocessing *
  • Pillow *
  • fastapi >=0.68.0,<0.69.0
  • h5py *
  • numpy *
  • pandas *
  • prometheus_fastapi_instrumentator *
  • pydantic >=1.8.0,<2.0.0
  • python-dotenv *
  • python-multipart *
  • scipy *
  • tensorflow *
  • tqdm *
  • uvicorn >=0.15.0,<0.16.0
Flask/requirements.txt pypi
  • Flask ==2.0.1
  • Flask-Bootstrap ==3.3.7.1
  • Flask-Compress ==1.9.0
  • Flask-FontAwesome ==0.1.5
  • Keras ==2.4.3
  • Keras-Preprocessing ==1.1.2
  • Pillow ==7.2.0
  • flask-cors *
  • gunicorn *
  • h5py ==2.10.0
  • numpy ==1.16.0
  • pandas ==1.1.3
  • prometheus-flask-exporter ==0.20.2
  • python-dotenv ==0.15.0
  • scipy ==1.5.2
  • tensorflow ==2.3.1
  • tqdm ==4.48.2