-
Notifications
You must be signed in to change notification settings - Fork 1
Setup tensorflow environment
A.L edited this page Feb 4, 2020
·
2 revisions
Install the environment and the correct dependencies to train and run neural network with tensorflow 2
A PC running ubuntu 18, preferably with a compatible GPU
pip install tensorflow- Install NVIDIA GPU drivers 418.x or higher
- Install CUDA Toolkit 10.1 shipped with CUPTI
- Install cuDNN SDK 7.6 or higher
- Install TensorRT 6.0 to improve latency and throughput for inference on some models
Try your tensorflow installation by running this in python:
from __future__ import absolute_import, division, print_function, unicode_literals
import tensorflow as tf
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))The most tricky part is updating your NVIDIA GPU Drivers, you might broke your os but you can try this to recover it:
To recover, follow these steps:
Ctrl+Alt+F1 [to exit and get into the TTY mode]
sudo apt-get remove --purge nvidia*
sudo apt-get install ubuntu-desktop
sudo apt-get autoremove
sudo rm /etc/X11/xorg.conf
echo "nouveau" | sudo tee -a /etc/modules
sudo reboot
[after reboot, you should be back to operational with the nouveau driver, and can login]
sudo add-apt-repository --remove ppa:graphics-drivers/ppa
sudo apt-get autoremove
sudo apt-get autoclean
-
[Tutorials]
- [MECA]
- [Wheelbase]
- [CAD Model]
- [CODE]
- Ubuntu 18 on raspi 4
- [ROS 101]
- Master-Slave ROS
- Camera ROS
- Lidar gmapping and nav stack
- [Add points to virtual map]
- Simulate mapping
- Set up TF environment
- Using-yolo-v3
- [Weed recognition]
- [Embedded Inference]
- [ELEC]
- [Hardware]
- Ultrasound Sensors
- Multiplexer
- [Alimentation]
- [MAKE]
- 3D Modeling
- Laser cutting
- 3D Printing
- CNC Extrusion
- [Tools 101]
- [MECA]
-
[Subprojects]
-
[Articles]
- [Type of sensors]
- [Choice of microcontroller]
-
[Ressources]
- [Cloud]
- [Other Repositories]
- [Papers]
- [Youtube Channels]
-
[Miscellaneous]