#5 Live Coding - Visualising a Neural Network in 3D - installing Tensorflow in Blender

Опубликовано: 12 Октябрь 2024
на канале: CODE MENTAL
733
13

I have managed to create python code to visualise fully connected layers in a neural network.
Today I will be installing Tensorflow, Pillow, and other libraries I need inside Blender 3.2 using virtual environment. Wish me luck.
Gist with source code, check links below under Source Code.

✅ Recommended Courses
(Includes Amazon Affiliate Links)
==================================
⭐ Python for Everybody 👉🏼 https://coursera.pxf.io/mgJKke
⭐ Machine Learning Specialization with Andrew Ng 👉🏼 https://imp.i384100.net/KemLOy
⭐ Learn Data Science with Coursera Plus 👉🏼 https://imp.i384100.net/c/3326428/132...

✅ Recommended Playlists
==================================
#️⃣ Wildlife Detection with the Raspberry PI 👉🏼    • Machine Learning Project - Creating I...  
#️⃣ Tensorflow Style Transfer Tutorial and Examples 👉    • Tensorflow Style Transfer Tutorial an...  
#️⃣ 3D Deep Learning 👉🏼    • 3D Deep Learning  
#️⃣ Creating a 3D model of a Photo using Python and Numpy 👉🏼    • Creating a 3D model of a Photo using ...  
#️⃣ Python Problems for Beginners 👉🏼    • Python Problems for Beginners  
#️⃣ Python Bot Development For Beginners 👉🏼    • Code a Bot with Python For Beginners ...  
#️⃣ Web Scraping Projects 👉🏼    • Web Scraping Projects  
#️⃣ Blender Python API 👉🏼    • Blender Python API  

✅ My Favorite Tech
(Includes Amazon Affiliate Links)
==================================
💻 Ryzen 5950 and RTX 3090 PC for Gaming And ML 👉🏼 https://amzn.to/3Pz5saF
🖥 Gigabyte RTX 3090 Ti 👉🏼 https://amzn.to/3cxKN8l
🖥 Gigabyte RTX 3080 Ti 👉🏼 https://amzn.to/3BeRZjX
🖥 Gigabyte RTX 3070 Ti 👉🏼 https://amzn.to/3z3ZpUC
🖥 Gigabyte RTX 3060 👉🏼 https://amzn.to/3BmEpLk
👨🏼‍💻 M2 Macbook Pro 8GB 👉🏼 https://amzn.to/3OwPKve
👨🏼‍💻 M2 Macbook Air 8GB 👉🏼 https://amzn.to/3PNA7Ri
📟 Raspberry PI 👉 🏼https://amzn.to/3z4wKyP
📟 Raspberry Pi HQ Camera 👉🏼 https://amzn.to/3BirRVo
🖲 Web Camera 👉🏼 https://amzn.to/3v8inIs
📸 My Camera of Choice 👉🏼 https://amzn.to/3BinAkO
🖥 My Monitor of Choice 👉🏼 https://amzn.to/3z6GQ1U
🏢 Standing Desk 👉🏼 https://amzn.to/3Be5ssg
📗 Deep Learning Must Read 👉🏼 https://amzn.to/3OvbCHI

✅ My RTX 3070 and Ryzen 5900 Machine Learning PC Build
(Includes Amazon Affiliate Links)
=======================================================
#️⃣ Watch My First Deep Learning PC Build 👉🏼    • My first Deep learning PC Build and S...  
#️⃣ AMD Ryzen 5900X CPU 👉🏼 https://amzn.to/3z6K9Gm
#️⃣ Gigabyte GeForce RTX 3070 EAGLE OC 8GB Graphics Card 👉🏼 https://amzn.to/3BeWTgM
#️⃣ ASUS ROG Strix X570-E Gaming ATX Motherboard, AMD Socket AM4 👉🏼 https://amzn.to/3PNEJXC
#️⃣ Corsair iCUE H150i PRO XT RGB Liquid CPU Cooler (360mm) 👉🏼 https://amzn.to/3b3w44w
#️⃣ Samsung Nvme 980 pro 2tb 👉🏼 https://amzn.to/3zwYpKd
#️⃣ Crucial Solid State Drive 1TB 👉🏼 https://amzn.to/3J3tBUz
#️⃣ PC Case - Phanteks Eclipse P600S 👉🏼 https://amzn.to/3Pw34BB
#️⃣ Memory - Corsair Vengeance RGB Pro 32GB (2x16GB) DDR4 3600- Black 👉🏼 https://amzn.to/3owSSwA
#️⃣ Power Supply - CORSAIR CX750F RGB - 750 Watt, Fully Modular 👉🏼 https://amzn.to/3ophd7E

As an Amazon Associate, I earn a small commission from qualifying purchases on the amazon links above.

✅ Source Code

https://spltech.co.uk/visualizing-a-n...

✅ BUSINESS ENQUIRIES

[email protected]

✅ SUPPORT THE CHANNEL or get MENTORING

  / codemental  

✅ FOLLOW ME

IG 👉🏼   / codemental  
Blog 👉🏼 https://spltech.co.uk/blog/

✅ TIMESTAMPS

0:00 Introduction
5:00 Draft version of neural network in 3D with Blender 2.93
7:30 Stream lagging because Tensorflow hogging my GPU - I will fix this later
14:30 Installing Tensorflow in Blender 3.2
25:00 Installing Tensorflow, Pillow, and other Libs with pip and virtualenv
47:00 Adding Python libraries with sys.path.append
50:00 Testing installation of Tensorflow inside Blender
57:00 Visualising neural network
1:00:00 Refactoring code into separate Python Modules
1:08:00 Tensorflow is hogging y GPU memory again
1:14:00 tf.config.experimental.set_memory_growth
1:22:00 How to change code in modules without restarting Blender
1:26:00 Trying System-Reload
1:30:00 solution without restart of Blender
1:38:00 More Refactoring
1:45:00 How to import function from python module
1:48:00 Tensorflow hogging my GPU again - I will eventually fix it
2:02:00 More refactoring
2:12:00 Memory usage in my RTX 3070 GPU
2:20:00 Solved Tensorflow GPU memory hog issue
2:27:00 Merging code for visualising neural network
2:33:00 StructRNA of Material has been removed error?!
2:36:00 I fix the error
2:44:00 Fixing more errors
3:02:00 Final visualisation of the neural network - for the evening

#python #pythonforbeginners #blender #python3d #tensorflow