You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The application relies on a **trained AI model** and a **background database** of fireworks, both maintained by the NFI.
20
21
They are both stored on the HuggingFace organization page of the NFI (see [here](https://huggingface.co/NetherlandsForensicInstitute)).
21
22
* The model, as well as a description of how it was trained, can be found [here](https://huggingface.co/NetherlandsForensicInstitute/vuurwerkverkenner).
22
23
* The background database can be found [here](https://huggingface.co/datasets/NetherlandsForensicInstitute/vuurwerkverkenner-data).
23
24
24
-
If you want to run the application locally, download a copy of the model and database to your machine.
25
-
26
-
## Getting started
25
+
## Running the app locally
27
26
The following describes how to run the application on your own machine.
28
-
It can be run with a **dummy** model and database (which are contained within this repository), or with a copy of the **real** model and database which are stored on HuggingFace.
27
+
It can be run with the live model and database, which are stored on HuggingFace.
29
28
30
29
### Prerequisites
31
-
* Python 3.8
30
+
* Python 3.12
32
31
* Any web browser
33
-
* Optionally, a local copy of the model and data (see above)
32
+
* An internet connection (required for downloading the data when running the application for the first time)
33
+
34
+
#### Recommended:
35
+
* A Python virtual environment
36
+
* A HuggingFace account + access token
37
+
Set the token as an environment variable named `HF_TOKEN`
38
+
NOTE: It is possible to download the data without this token, but you will likely have to restart the process
39
+
a few times for it to fully complete te download.
34
40
35
41
### Requirements
36
-
All package requirements for running the application are specified in `requirements.txt`.
37
-
Packages can be installed from PyPi, e.g. through `pip install -r requirements.txt`.
42
+
All package requirements for running the application are specified in `pyproject.toml`.
38
43
39
-
### Configuration
40
-
Make sure parameters in `app/setup.cfg` (in particular `MODEL_CONFIG_FILE` and `META_DATA_DIR`) match the desired configuration.
41
-
* For running the application with a **dummy** model and database, uncomment the indicated lines.
42
-
* For running the application with the **real** model and database, make sure that the paths point to the correct locations on your machine. Additionally, make sure that the filepath for the weights file (in the model configuration file) matches the filepath on your machine.
44
+
### Model and data
45
+
The model and data are downloaded from HuggingFace when running the app for the first time. These data are saved
0 commit comments