Note: images and annotations in this tutorial are modified from COCO dataset.
- update your forked repo from my repo(ref)
- following 01_git, create a new branch
LAST#_08vis2d(ex: pan667_08vis2d) in your forked repo - activate the environment you created in 03_conda
- install jupyterlab
- copy
sample.ipynbtosubmissionsand rename it asLAST#.ipynb - start jupyterlab, it should open a window in your browser. open your
LAST#.ipynb - write your code to plot bounding boxes, masks, and texts, as shown in the sample, using the
annotatoins.txt(similar to 07_COCO)- do not use showanns in pycocotools; plot it yourself with matplotlib
- for boxes, you can use matplotlib.patches.Rectangle
- for masks, you can create mask images with transparency and overlay with the original image
- for texts, you can use ax.text. align text and box at the center
- stage changes, commit with the message "learning vis2d", push and submit a pr