Skip to content

Instantly share code, notes, and snippets.

@DaniruKun
Last active January 14, 2022 11:27
Show Gist options
  • Save DaniruKun/4d449be4a196cb85d828de77fdf66955 to your computer and use it in GitHub Desktop.
Save DaniruKun/4d449be4a196cb85d828de77fdf66955 to your computer and use it in GitHub Desktop.

How to install Hercules source code analysis setup in 2022

Requirements

  • Python 3.7.10 or older
  • Tensorflow 1.14 or older
  • Labours 10.7.2 or older
python -m pip install tensorflow==1.14.0 labours==10.7.2

I suggest using this exact configuration, as I have tested them together.

You might have to use python -m labours to execute labours.

Usage

Couples

hercules --couples --devs . | labours -m all

Projector

If the labours web server fails for some reason, just run your own web server using python -m http.server 8000 Then simply open the config files directly in Tensorflow Projector, e.g. http://projector.tensorflow.org/?config=http://0.0.0.0:8000/couples_people.json

You can also manually load the data and metadata TSV files into Projector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment