Xylene | ML-Xylene |
---|---|
Inspired and partly copied from https://github.com/MaxRobinsonTheGreat/mandelbrotnn
This repository contains code to visualize the training of a neural network model in PyTorch. The neural network is trained to learn 2D representations of a given text or picture. After training, these images are compiled into a video, visualizing the learning process.
-
Generate 2D Data Points from Text:
- The
text_to_points
function insrc/text_to_image.py
generates 2D data points that visually represent a given text.
- The
-
Train the Neural Network:
- The
train
function insrc/train.py
contains the training loop, where the neural network is trained to learn the representations of the text.
- The
-
Create a Video from Saved Images After Training:
- After training, call the
images_to_video
function fromsrc/video_creator.py
to compile the saved images into a video.
- After training, call the
Install the necessary packages with:
pip install -r requirements.txt
git clone https://github.com/yourusername/Text-to-Image-NN-Training-Visualization.git
cd Text-to-Image-NN-Training-Visualization
pip install -r requirements.txt
Change the settings in the run_example.py file and start creating cool videos!