Skip to content

Radialarray/neuralorem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neuralorem

NeuraLorem is a plugin for Sketch for creating Lorem Ipsum fill text.

What is NeuraLorem?

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.

Neuralorem in Action

How to run the plugin?

  1. Install tensorflow via python.

  2. 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
  3. Install minimaxir/textgenrnn in your environment.

  4. Run the node script. node server.js The script creates a server, listening on port 3000 for incoming seeds.

  5. Now you're sketch plugin can connect to the machine learning model and generate the text.

About

Create LoremIpsum from a text-generating neural network in Sketch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published