... | @@ -42,39 +42,30 @@ $ cd ~/fidle-tp |
... | @@ -42,39 +42,30 @@ $ cd ~/fidle-tp |
|
The idea is to create a virtual python environment, in order not to "pollute" your system.\
|
|
The idea is to create a virtual python environment, in order not to "pollute" your system.\
|
|
This virtual environment will be contained in a sub folder (fidle-env).
|
|
This virtual environment will be contained in a sub folder (fidle-env).
|
|
|
|
|
|
To create a virtual environment "fidle-env" and activate it:
|
|
**FIRST**, we create a **virtual environment** "fidle-env" and activate it:
|
|
|
|
|
|
```plaintext
|
|
```plaintext
|
|
$ python3 -m venv fidle-env
|
|
$ python3 -m venv fidle-env
|
|
$ source ./fidle-env/bin/activate
|
|
$ source ./fidle-env/bin/activate
|
|
```
|
|
```
|
|
|
|
|
|
We can now install all the necessary modules in our python environment :
|
|
We can now install all the necessary modules in our python environment.
|
|
|
|
|
|
|
|
**SECOND**, we have to **install PyTorch**, according PyTorch documentation : https://pytorch.org/get-started/locally/
|
|
|
|
|
|
|
|
Example: on Linux for cpu :
|
|
|
|
|
|
|
|
```
|
|
|
|
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
|
|
|
```
|
|
|
|
|
|
|
|
**THIRD**, we will now install the **rest of the modules**:-)
|
|
|
|
|
|
```plaintext
|
|
```plaintext
|
|
(fidle-env) $ pip install --extra-index-url https://download.pytorch.org/whl/cpu \
|
|
(fidle-env) $ pip install torch-geometric torchtext torchdata lightning \
|
|
torch \
|
|
tensorboard keras transformers numpy Scikit-image Scikit-learn \
|
|
torchvision \
|
|
Matplotlib plotly seaborn barviz pyarrow Pandas Pandoc \
|
|
torch-geometric \
|
|
pyyaml Jupyterlab fidle
|
|
torchtext \
|
|
|
|
torchdata \
|
|
|
|
lightning \
|
|
|
|
tensorboard \
|
|
|
|
keras \
|
|
|
|
transformers \
|
|
|
|
numpy \
|
|
|
|
Scikit-image \
|
|
|
|
Scikit-learn \
|
|
|
|
Matplotlib \
|
|
|
|
plotly \
|
|
|
|
seaborn \
|
|
|
|
barviz \
|
|
|
|
pyarrow \
|
|
|
|
Pandas \
|
|
|
|
Pandoc \
|
|
|
|
pyyaml \
|
|
|
|
Jupyterlab \
|
|
|
|
fidle
|
|
|
|
```
|
|
```
|
|
|
|
|
|
It will take a little while, but should go very well :-)
|
|
It will take a little while, but should go very well :-)
|
... | @@ -86,7 +77,7 @@ It will take a little while, but should go very well :-) |
... | @@ -86,7 +77,7 @@ It will take a little while, but should go very well :-) |
|
Now all that remains is to install the notebooks and datasets :-)\
|
|
Now all that remains is to install the notebooks and datasets :-)\
|
|
Nous allons faire cela avec la commande `fid` de Fidle.
|
|
Nous allons faire cela avec la commande `fid` de Fidle.
|
|
|
|
|
|
Toujours depuis notre dossier `fidle-tp`
|
|
Still from our folder `fidle-tp`
|
|
|
|
|
|
```plaintext
|
|
```plaintext
|
|
(fidle-env) $ fid install --quiet
|
|
(fidle-env) $ fid install --quiet
|
... | @@ -97,15 +88,15 @@ You should have something like :\ |
... | @@ -97,15 +88,15 @@ You should have something like :\ |
|
|
|
|
|
```plaintext
|
|
```plaintext
|
|
==========================================================
|
|
==========================================================
|
|
fid - Your favorite Fidle admin command :-) (v2.2b10)
|
|
fid - Your favorite Fidle admin command :-) (v2.3.0)
|
|
==========================================================
|
|
==========================================================
|
|
|
|
|
|
Install Fidle notebooks in . :
|
|
Install Fidle notebooks in . :
|
|
|
|
|
|
Install ressource : fidle-master
|
|
Install ressource : fidle-master
|
|
In directory : .
|
|
In directory : .
|
|
Extract : [########################################] 100.0% of 152 files
|
|
Extract : [########################################] 100.0% of 113 files
|
|
Installed in : ./fidle-master-2.2.4
|
|
Installed in : ./fidle-master-3.0.5
|
|
Done.
|
|
Done.
|
|
|
|
|
|
Install Fidle datasets in . :
|
|
Install Fidle datasets in . :
|
... | @@ -124,7 +115,7 @@ The tree structure is normally as follows: |
... | @@ -124,7 +115,7 @@ The tree structure is normally as follows: |
|
|
|
|
|
```plaintext
|
|
```plaintext
|
|
fidle-tp
|
|
fidle-tp
|
|
├── fidle-master-2.2.4 Contains notebooks
|
|
├── fidle-master-3.0.5 Contains notebooks
|
|
├── fidle-datasets Contains datasets
|
|
├── fidle-datasets Contains datasets
|
|
└── fidle-env Virtual environment
|
|
└── fidle-env Virtual environment
|
|
```
|
|
```
|
... | @@ -143,7 +134,7 @@ You should have something like :\ |
... | @@ -143,7 +134,7 @@ You should have something like :\ |
|
|
|
|
|
```plaintext
|
|
```plaintext
|
|
==========================================================
|
|
==========================================================
|
|
fid - Your favorite Fidle admin command :-) (v2.2b10)
|
|
fid - Your favorite Fidle admin command :-) (v2.3.0)
|
|
==========================================================
|
|
==========================================================
|
|
|
|
|
|
Notebooks and datasets can only be found if they are in/near the explored folder.
|
|
Notebooks and datasets can only be found if they are in/near the explored folder.
|
... | @@ -157,25 +148,23 @@ Datasets dir found : |
... | @@ -157,25 +148,23 @@ Datasets dir found : |
|
|
|
|
|
Notebooks dir found :
|
|
Notebooks dir found :
|
|
|
|
|
|
/home/dupont/fidle-tp/fidle-master-2.2.4 (Notebooks Fidle / 2.2.4)
|
|
/home/dupont/fidle-tp/fidle-master-3.0.5 (Notebooks Fidle / 3.0.5)
|
|
/home/dupont/fidle (Notebooks Fidle / 2.2.4)
|
|
|
|
|
|
|
|
Check environment :
|
|
Check environment :
|
|
Python : Ok (3.8.10)
|
|
Python : Ok (3.9.2)
|
|
Fidle module : Ok (2.2b10)
|
|
Fidle module : Ok (2.3.0)
|
|
tensorflow : Ok (2.12.0)
|
|
keras : Ok (3.0.4)
|
|
tensorflow.keras : Ok (2.12.0)
|
|
numpy : Ok (1.24.1)
|
|
numpy : Ok (1.23.3)
|
|
sklearn : Ok (1.4.0)
|
|
sklearn : Ok (1.3.2)
|
|
|
|
yaml : Ok (6.0.1)
|
|
yaml : Ok (6.0.1)
|
|
skimage : Ok (0.21.0)
|
|
skimage : Ok (0.22.0)
|
|
matplotlib : Ok (3.7.3)
|
|
matplotlib : Ok (3.8.2)
|
|
plotly : Ok (5.18.0)
|
|
plotly : Ok (5.18.0)
|
|
pandas : Ok (2.0.3)
|
|
pandas : Ok (2.2.0)
|
|
jupyterlab : Ok (4.0.7)
|
|
jupyterlab : Ok (4.0.11)
|
|
torch : Ok (2.1.0+cu121)
|
|
torch : Ok (2.1.2+cpu)
|
|
torchvision : Ok (0.16.0+cu121)
|
|
torchvision : Ok (0.16.2+cpu)
|
|
lightning : Ok (2.1.0)
|
|
lightning : Ok (2.1.3)
|
|
```
|
|
```
|
|
|
|
|
|
## 6 - Start Jupyter lab
|
|
## 6 - Start Jupyter lab
|
... | | ... | |