Skip to content

Instantly share code, notes, and snippets.

View shkr's full-sized avatar
:shipit:
Ship it

Shashank Shekhar shkr

:shipit:
Ship it
View GitHub Profile
@AmericanPresidentJimmyCarter
AmericanPresidentJimmyCarter / README.md
Last active August 19, 2024 07:06
Putting your waifu into Flux with LoRA: welcome to losercity

Putting your waifu into Flux with LoRA: welcome to losercity

First, here is my SimpleTuner LoRA config, so you can get started with it. I used an 80GB A100 (thanks @bghira!).

LoRA repository:

@sou-long
sou-long / example.ts
Last active July 19, 2024 07:28
Dodging all the bullets with @imgly/background-removal-node
import fs from 'node:fs'
import path from 'node:path'
import url from 'node:url'
import {removeBackground} from '@imgly/background-removal-node'
const P = (...vs: string[]) => path.resolve(...vs)
async function remove_bg(filename: string) {
const prj_dir = P(url.fileURLToPath(import.meta.url), '../..') // assuming we're in src/foo.ts
const dist_dir = P(prj_dir, 'node_modules/@imgly/background-removal-node/dist')
import cv2
# variables
# distance from camera to object(face) measured
Known_distance = 30 #centimeter
# width of face in the real world or Object Plane
Known_width =14.3
# Colors
GREEN = (0,255,0)
RED = (0,0,255)
WHITE = (255,255,255)
@andy-thomason
andy-thomason / Genomics_A_Programmers_Guide.md
Created May 14, 2019 13:32
Genomics a programmers introduction

Genomics - A programmer's guide.

Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.

https://www.genomicsplc.com

@Shreeyak
Shreeyak / create_pointCloud.py
Created May 2, 2019 10:23
Script to create a point cloud and save to .ply file from an RGB and Depth Image
#!/usr/bin/env python3
import numpy as np
from PIL import Image
import imageio
import OpenEXR
import struct
import os
def get_pointcloud(color_image,depth_image,camera_intrinsics):
@yang-zhang
yang-zhang / pytorch-losses-in-plain-python.ipynb
Last active December 21, 2022 07:14
git/yang-zhang.github.io/ds_code/pytorch-losses-in-plain-python.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mkocabas
mkocabas / coco.sh
Created April 9, 2018 09:41
Download COCO dataset. Run under 'datasets' directory.
mkdir coco
cd coco
mkdir images
cd images
wget http://images.cocodataset.org/zips/train2017.zip
wget http://images.cocodataset.org/zips/val2017.zip
wget http://images.cocodataset.org/zips/test2017.zip
wget http://images.cocodataset.org/zips/unlabeled2017.zip
@junpenglao
junpenglao / [WIP] Bayesian GMM.ipynb
Last active October 18, 2019 11:11
Documents/Github/Human_Learning/Miscellaneous/[WIP] Bayesian GMM.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active February 5, 2026 06:11
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active January 24, 2026 19:55
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS