Skip to content

Instantly share code, notes, and snippets.

View dcshapiro's full-sized avatar
🏡
Having Fun With Data

Daniel Shapiro dcshapiro

🏡
Having Fun With Data
View GitHub Profile
@travishsu
travishsu / coco2labelme.py
Last active May 29, 2024 09:13
Convert COCO format segmentation annotation to LabelMe format
import os
import json
import subprocess
import numpy as np
import pandas as pd
from skimage.measure import find_contours
class CocoDatasetHandler:
def __init__(self, jsonpath, imgpath):