Skip to content

Instantly share code, notes, and snippets.

View PapaMadeleine2022's full-sized avatar

PapaMadeleine PapaMadeleine2022

View GitHub Profile
@travishsu
travishsu / coco2labelme.py
Last active July 19, 2024 01:51
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):
@1duo
1duo / centos.install.nccl.md
Last active March 30, 2024 06:41
Install NCCL for GPU communications on CentOS 7.

NCCL1

git clone https://github.com/NVIDIA/nccl.git
cd nccl
make -j$(nproc) install

NCCL2

@peterkuma
peterkuma / server.py
Created February 10, 2014 14:22
A flask server for serving all JPEG images in a local directory and subdirectories. Uses unveil.js for lazy-loading of images. Thumbnails are created on the fly by PIL.
#!/bin/python
import os
from flask import Flask, Response, request, abort, render_template_string, send_from_directory
import Image
import StringIO
app = Flask(__name__)
WIDTH = 1000
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""