cvhciKIT / sloth

Sloth is a tool for labeling image and video data for computer vision research.
Other
608 stars 199 forks source link

Not getting the sloth window. #139

Open swetshaw opened 6 years ago

swetshaw commented 6 years ago

Can anyone please help me out on which command to run to get the sloth window like below: example_labels_gui

jaskiewiczm commented 6 years ago

at the command line sloth

laurelrr commented 2 years ago

I was able to get this working on a Windows machine, using Anaconda Prompt. I am only able to get it working with an older version of python

  1. Create a sloth environment with the command:

    conda create -n sloth-test python=2.7

  2. Activate it with the command:

    conda activate sloth-test

  3. Get the wheel for the PyQt4 for python 2.7 version from this website: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4 For example, if you are running Windows x32, choose this one: PyQt4‑4.11.4‑cp27‑cp27m‑win32.whl (many thanks to this suggestion for the info: https://stackoverflow.com/questions/46326595/python27-pyqt4?noredirect=1&lq=1)
  4. After it downloads, now you have to install it with the command:

    pip install PyQt4‑4.11.4‑cp27‑cp27m‑win32.whl (or whatever the version you selected)

  5. There are a few other things to install:

    pip install numpy

    pip install pillow

  6. Next, from the top level directory, install sloth with this command:

    python setup.py install

Sloth should now be installed. To run it type:

python .\sloth-master\sloth\bin\sloth and you should see a window open.