NeuraLorem is a plugin for Sketch for creating Lorem Ipsum fill text.
The plugin creates the text based on input seeds and tries to come up with a contextual useful fill text, instead of the standard Lorem Ipsum fill text.
The neural network is based on minimaxir/textgenrnn, a text-generating neural network.
Why write such a plugin? The plugin was written in the machine learning for designers workshop at @hfggmuend, led by @philippschmitt. It's a small dive into machine learning and what could be possible use cases for designers.
-
Install tensorflow via python.
-
If installed in a virtual environment via anaconda -> Run the virtual environment. (My environment is called
tensorflow-env
)Useful commands copied from the install page of tensorflow:
- Create a new virtual environment by choosing a Python interpreter and making a ./venv directory to hold it:
conda create -n venv pip python=3.6
- Activate the virtual environment:
conda activate tensorflow-env
- Within the virtual environment, install the TensorFlow pip package using its complete URL:
pip install --ignore-installed --upgrade packageURL
- And to exit virtualenv later:
conda deactivate
+source deactivate
Don't exit until you're done using TensorFlow
- Create a new virtual environment by choosing a Python interpreter and making a ./venv directory to hold it:
-
Install minimaxir/textgenrnn in your environment.
-
Run the node script.
node server.js
The script creates a server, listening on port 3000 for incoming seeds. -
Now you're sketch plugin can connect to the machine learning model and generate the text.