Welcome to the ArtisticCV instructions.
The steps to install the basic programs necessary include:
- Install Python 3.8 or higher (it should work on Python 3.6+, but don't quote me on this)
- Go to the Python download page
- Download your desired version of Python (you might as well get Python 3.10)
- Install Git
- Follow the instructions on this website
The steps to setting up this repository include:
- Clone this repository
# In your terminal (enter the following line-by-line, replacing where necessary): cd <path-to-your-directory> git clone https://github.com/thedavidchu/ArtisticCV.git
- OPTIONAL Setting up a Virtual Environment
- Why set up a virtual environment?
- A virtual environment is a way to keep all of the Python packages you download for this project separate from packages you may use in other projects. This means: (1) this project is easier to delete (just delete the virtual environment and all of the project files, instead of uninstalling all the packages manually), (2) prevents you having to sort through different dependency
- Read the HOW-TO instructions on Python's virtual environment
- Why set up a virtual environment?
- Install the requirements with
pip install -r requirements.txt
(don't quote me on this)# In your terminal (enter the following line-by-line): cd ArtisticCV pip install -r requirements.txt # Assuming pip is installed. If not, install it!
- Setup the configuration file in
config.json
by adding your name in the empty quotes beside author- This is to keep track of who labelled which data.
- The file should like like so, after inserting one's first and last names:
{ "author": "<First-Name> <Last-Name>" }
- Run
main.py
with Python# In your terminal (enter one): python3 main.py # Your python version may be called just "python"
- Maximize the window for optimal experience (NOTE: if you have a small screen, this will be painful-- or may not work at all!)
- Click on
File -> Open directory
(note: trying to do this multiple times in the same run will cause an error) - Select the directory of images you wish to label (there is a convenient directory named "data" that you may use for this purpose. It has some test images in it).
- Note: we save the labels to this file, so make sure you have write permission!
- Happy labelling!
- Click on the image to lay a point
UTRA-ART People: You only need to use the Polygon mode -- N.B. that hitting 'Enter' closes the Polygon for you!!
The various modes are:
- Cursor (supposed to do nothing, but lays invisible points)
- Point (lays visible point marks)
- Line (lays a multi-line)
- Polygon (lays a polygon, snaps closed upon hitting 'Enter') [Default]
- '>' : Save labels and advance to the next image (N.B. you do not need to hit ctrl+s before advancing. It will save automatically with this shortcut!)
- '<' : Save labels and go to the previous image
- BackSpace : Remove the previously laid point of the current label (if applicable)
- Delete : Remove the entire currently selected label
- Enter : Create a new label on the current image
- Right Arrow : Go to the next label
- Left Arrow : Go to the previous label
- Ctrl + 's' : Save the labels on the current image
You can copy the labels to another folder, keeping the file structure the same.
- Click on
File -> Export Labels
- A window will pop up. Select the source folder
- A window will pop up. Select the destination folder
- Double check that the labels are correctly moved!
- Report bugs/feature requests to David Chu (file an Issue on github)
- Help maintaining is always welcome!