... | ... | @@ -3,21 +3,26 @@ |
|
|
|
|
|
**- Prerequisites -**
|
|
|
|
|
|
* All notebooks can run on CPU or GPU
|
|
|
* The software environment (conda) requires about 10G
|
|
|
* Original datasets require about 2.5G
|
|
|
* Consolidated datasets may require up to 150G depending on the tests you perform... \
|
|
|
Anyway, 15GB will probably be a minimum...
|
|
|
* All notebooks can run on a **classic CPU**, having a GPU can be nice, but is not essential.
|
|
|
* Original datasets require about 2.5G, but Consolidated datasets may require up to 150G depending on the tests you perform. **15GB** will probably be a minimum...
|
|
|
|
|
|
**- Important : -**
|
|
|
|
|
|
You can install the Fidle environment via **Docker** or in a classic way. If you know how to use a Docker container, this is the best solution !
|
|
|
|
|
|
|
|
|
**- Contents -**
|
|
|
|
|
|
[[_TOC_]]
|
|
|
|
|
|
[<img width="350px" src="uploads/31d5ce29e91c44d33930aed9ef465559/InstallationFIDLE.png"></img>](https://www.youtube.com/watch?v=pw8x3D5IaQY&t=5s)
|
|
|
A small video presentation of the installation under Windows...
|
|
|
But everything is **precisely described below** ! ;-)
|
|
|
|
|
|
## 1 - Get Fidle repository of notebooks
|
|
|
## Step 0 - Create a main repository
|
|
|
|
|
|
The very first step will be to create a folder in which we will then install all the elements of Fidle, for example : `fidle-tp`
|
|
|
|
|
|
The next 3 steps will take place within this folder.
|
|
|
|
|
|
## Step 1 - Get Fidle repository of notebooks
|
|
|
|
|
|
The simplest and most conventional way is with **git** (200 MB):
|
|
|
|
... | ... | @@ -30,7 +35,7 @@ However, a **[classic retrieval](https://fidle.cnrs.fr/notebooks)** (zip) is pos |
|
|
**Important :** The project is frequently updated and we encourage you to get the latest version.\
|
|
|
The version number is specified in the README of the repository.
|
|
|
|
|
|
## 2 - Get and install Datasets
|
|
|
## Step 2 - Get and install Datasets
|
|
|
|
|
|
**Get it**\
|
|
|
The datasets used in the examples are **[available here ](https://fidle.cnrs.fr/fidle-datasets.tar)**.\
|
... | ... | @@ -41,55 +46,17 @@ wget https://fidle.cnrs.fr/fidle-datasets.tar |
|
|
tar -xf fidle-datasets.tar
|
|
|
```
|
|
|
|
|
|
**Specify the location**\
|
|
|
You must then indicate the location of this folder with an environment variable.
|
|
|
|
|
|
* For computers under Linux, add the following line to your `.bashrc`, or \`.bash_profile, ...
|
|
|
|
|
|
```shell
|
|
|
export FIDLE_DATASETS_DIR=<the place of your datasets directory>
|
|
|
```
|
|
|
|
|
|
* For computers under Windows (and using a terminal that is NOT a powershell!)
|
|
|
|
|
|
```shell
|
|
|
set FIDLE_DATASETS_DIR=<the place of your datasets directory>
|
|
|
```
|
|
|
|
|
|
A complete description of the different datasets is available in Notebooks.
|
|
|
|
|
|
## 3 - Setup Python Environment
|
|
|
|
|
|
### Linux users
|
|
|
It is possible to install **conda** or **pip** :
|
|
|
**[Linux installation procedure, using conda](Using Fidle/Linux installation using conda)**
|
|
|
**[Linux installation procedure, using pip](Using-Fidle/Linux installation with pip)**
|
|
|
## Step 3 - Setup Python Environment
|
|
|
|
|
|
### Windows users
|
|
|
Choose the right procedure :
|
|
|
|
|
|
**[Windows installation procedure, using pip](/Using Fidle/Windows installation)**
|
|
|
- [Linux installation](/Using-Fidle/Linux installation with pip)
|
|
|
- [Windows installation](/Using Fidle/Windows installation)
|
|
|
- [Manual installation (MacOs ?)](/Using Fidle/Manual installation)
|
|
|
|
|
|
### Manual or MacOS installation
|
|
|
|
|
|
If you have difficulties or if you are under MacOS...
|
|
|
**[Try this this manual installation procedure](/Using Fidle/Manual installation)**
|
|
|
|
|
|
|
|
|
**NOTE:**
|
|
|
- If you are lucky enough to have an account at **IDRIS** or at your favorite **meso center**, pre-installed environments are already available !
|
|
|
- To avoid infos and warning messages from tensorflow, you can set an additional environment variable `TF_CPP_MIN_LOG_LEVEL` whose possible values are 0, 1, 2 or 3.\
|
|
|
(0: all msg, 1:hide infos, 2:hide infos+warnings, 3:hide info, warnings and errors)
|
|
|
|
|
|
|
|
|
That's all folks !!
|
|
|
|
|
|
|
|
|
|
|
|
## Annexe 2 - Test installations
|
|
|
|
|
|
### Check Tensorflow / Keras
|
|
|
|
|
|
If you want to check your **tensorflow installation** (and check if it supports gpu), launch a python interpreter and use these instructions :
|
|
|
If you want to **check your tensorflow installation** (and check if it supports gpu), launch a python interpreter and use these instructions :
|
|
|
|
|
|
```python
|
|
|
import tensorflow as tf
|
... | ... | @@ -98,30 +65,25 @@ print(tf.test.is_built_with_cuda()) |
|
|
print(tf.config.list_physical_devices('GPU'))
|
|
|
```
|
|
|
|
|
|
## Annexe 3 - Uninstall
|
|
|
Great, now you can **[run Jupyter Lab !](Using-Fidle/Running-Jupyter)**
|
|
|
|
|
|
To delete data and notebooks:
|
|
|
- delete the folder containing the datasets (probably `fidle-datasets`)
|
|
|
- delete the folder containing the notebooks (probably `fidle` ou `fidle-master`)
|
|
|
|
|
|
For **conda installed version (Linux)** use the following command :
|
|
|
```
|
|
|
conda deactivate
|
|
|
conda env remove --name fidle
|
|
|
```
|
|
|
## Annexe 1 : Hide warning messages
|
|
|
|
|
|
For **pip installed version (Windows)** use the following command :
|
|
|
```
|
|
|
deactivate
|
|
|
```
|
|
|
And remove the virtual env directory
|
|
|
- To avoid infos and warning messages from tensorflow, you can set an additional environment variable `TF_CPP_MIN_LOG_LEVEL` whose possible values are 0, 1, 2 or 3.\
|
|
|
(0: all msg, 1:hide infos, 2:hide infos+warnings, 3:hide info, warnings and errors)
|
|
|
|
|
|
|
|
|
...and think to remove your FIDLE_DATASET_DIR variable setting !
|
|
|
## Annexe 2 - Uninstall
|
|
|
|
|
|
To remove and delete all Fidle stuff :
|
|
|
- delete the folder containing the datasets (probably `fidle-datasets`)
|
|
|
- delete the folder containing the notebooks (probably `fidle` ou `fidle-master`)
|
|
|
- close terminals and remove python virtual env directory (probably `file-env`)
|
|
|
|
|
|
...and think to remove your FIDLE_DATASET_DIR variable setting !
|
|
|
|
|
|
|
|
|
|
|
|
L'ancienne procédure est [accessible ici :-)](Using-Fidle/install%20fidle%20v1)
|
|
|
|
|
|
 |
|
|
\ No newline at end of file |