projet-reseaux-profond/n7tensorflow.sh

20 lines
865 B
Bash
Raw Normal View History

2022-04-11 20:55:24 +00:00
# on se place dans les eaux internationales, loin des quotas
2022-05-15 14:28:35 +00:00
# hint: le dossier work est le disque dur de la machine, dispo en publique à tout le monde
# il faut alors se connecter à la même machine si l'on souhaite accéder à ces fichiers
mkdir /work/$USER-deepl
cd /work/$USER-deepl
2022-04-11 20:55:24 +00:00
2022-04-11 21:01:21 +00:00
# linking CUDA pour tensorflow (pas du tout volé à matlab)
2022-04-11 20:55:24 +00:00
export LD_LIBRARY_PATH=/applications/matlabr2021b/bin/glnxa64/:$LD_LIBRARY_PATH
# on installe un environnement virtuel python
python3 -m venv .env
source .env/bin/activate
2022-05-15 14:28:35 +00:00
python -m pip install pip tensorflow matplotlib numpy sklearn ipykernel jupyterlab pandas pretty_confusion_matrix albumentations
2022-04-11 20:55:24 +00:00
# on inscrit le venv dans la liste des kernels ipython
python -m ipykernel install --user --name=.env
# on lance un notebook
2022-05-04 10:16:04 +00:00
jupyter-lab --no-browser --ip 0.0.0.0 --port 8888 --NotebookApp.token='tokendemerde'