Skip to content

Instantly share code, notes, and snippets.

View jinensetpal's full-sized avatar
👨‍💻
wired in

Jinen Setpal jinensetpal

👨‍💻
wired in
View GitHub Profile
@poqdavid
poqdavid / howto.md
Last active May 6, 2025 13:23
How to rename author and resign all commits

1. Rename author

Note that filter-repo deletes remote section in .git\config

git filter-repo --mailmap mymailmap --force

or

@antoinebrl
antoinebrl / README.md
Last active May 23, 2025 13:05
Prepare ImageNet

Preparation of ImageNet (ILSVRC2012)

The dataset can be found on the official website if you are affiliated with a research organization. It is also available on Academic torrents.

This script extracts all the images and group them so that folders contain images that belong to the same class.

  1. Download the ILSVRC2012_img_train.tar and ILSVRC2012_img_val.tar
  2. Download the script wget https://gist.githubusercontent.com/antoinebrl/7d00d5cb6c95ef194c737392ef7e476a/raw/dc53ad5fcb69dcde2b3e0b9d6f8f99d000ead696/prepare.sh
  3. Run it ./prepare.sh
@morganmcg1
morganmcg1 / minGPT-Fastai_Play_Char.ipynb
Created August 22, 2020 00:04
Karpathy's minGPT in Fastai
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wllhf
wllhf / VOClabelcolormap.py
Last active January 13, 2025 20:28
Python implementation of the color map function for the PASCAL VOC data set.
"""
Python implementation of the color map function for the PASCAL VOC data set.
Official Matlab version can be found in the PASCAL VOC devkit
http://host.robots.ox.ac.uk/pascal/VOC/voc2012/index.html#devkit
"""
import numpy as np
from skimage.io import imshow
import matplotlib.pyplot as plt
def color_map(N=256, normalized=False):