Today I managed to do a bit more progress on visualizing fully connected layers in a neural network using Python and Blender. I fixed the bug I shared yesterday.
The next stage will be to optimize my blender function so that it scales for thousands of neurons. The number of connections between neurons grows exponentially.
My plan is to create only a single sphere and cylinder, for the neuron and the connection only and then use ArrayModifiers to repeat each at different angles. I already know all the angles, so it should be doable.
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.
✅ Article + 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 Getting Started and plan
5:30 Adding a gap between adjacent neurons
7:46 Viewer suggests a video on using GANs inside blender
9:46 Experiment with ArrayModifier
10:36 Where is the ArrayModifier???
12:21 Relative offset and constant offset
17:00 Enabling Python Tooltips
18:00 Modifying Python code to use ArrayModifier with both relative offset and constant offset
30:00 Showing how to subdivide object created with ArrayModifier into loose parts
36:00 Adding gap between neurons horizontally
57:54 Adding gap between neurons vertically
1:04:30 Replacing cylinders with cuboids for synapses
1:07:00 Defining cube using from_pydata
1:15:00 Defining createCube function
1:28:00 Testing bigger neural networks
1:39:00 adding materials - PrincipledBSDF
1:46:00 Adding material to cube
2:00:00 Adding materials to synapses
2:21:00 Visualising with materials
#python #pythonforbeginners #blender #python3d #tensorflow