docker build --rm -f "Dockerfile" -t tagging_app:latest .Run the code below in terminal first.
bash docker_run.shThen head over to http://localhost:3000/.
.
├── src
│ ├── images <- images to be labelled
│ │ ├── 001.jpg
│ │ ├── ...
│ │ └── 989.jpg
│ ├── index.js
│ └── label_names.json <- image data label names
├── docker_run.sh
├── Dockerfile
└── README.md
-
Data preparation
- put the images to be labeled in
./src/images - create a json file called
label_names.jsonthat contains all the labels of the image data with the following structure, then putlabel_names.jsonunder./src/.[ { "label_name": "boston_bull" }, { "label_name": "lakeland_terrier" }, { "label_name": "walker_hound" } ]
- put the images to be labeled in
-
App at
http://localhost:3000/-
click on
previousandnextto change images. -
to select/ unselect multiple labels use the command key
⌘. -
click on
saveto save the labeled data. a json calledimage_label.jsonwill be downloaded to yourDownloadsfolder.{ "001.jpg": ["dingo"], "002.jpg": ["boston_bull", "dingo", "pekinese"], "989.jpg": ["dingo", "walker_hound"] } -
to continue working on a
image_label.jsonsaved from before, click onClick here to uploadto upload the labeled data and resume labeling.
-
- app supports only
jpgandpngimages for now. - if more labels are added to
label_names.json, all images need to be relabelled using the latestlabel_names.jsonfile, i.e. useClick here to uploadto modify theimage_label.jsonfrom the old label names. - make sure that all images are put under
./src/images/before starting labeling. - if there are any new images to be labeled
- delete all existing images in
./src/imagesfirst. - then add the new images to
./src/images. - start labeling again.
- this will create two
image_label.jsonfiles.
- delete all existing images in