Skip to content

Instantly share code, notes, and snippets.

View Sazoji's full-sized avatar

Sazoji

  • USA
View GitHub Profile
@Sazoji
Sazoji / twitter to nitter.user.js
Created October 11, 2023 01:39
Twitter2Nitter.net
// ==UserScript==
// @name twitter to nitter
// @match *://twitter.com/*
// @run-at document-start
// @author Sazoji
// @description Redirects from twitter to nitter
// @grant none
// @version 0.0.1
// ==/UserScript==
@Sazoji
Sazoji / colmap2poses.py
Last active December 18, 2023 05:08
colmap2poses is simple! make sure you have opencv (and rembg if you wish to mask). The only thing required is a path to the dataset folder, containing a "images" subfolder. Avoid weird filenames.
# most of the code is refactored colmap parsing from LLFF, a GPLv3 project.
# this is meant to be comparable to instant-ngp's colmap2nerf.py, and uses the
# same arguments, with additional functions for masking and LLFF format poses.
# LLFF format .npy files will always be made, remove if you ONLY want NeRF format
#~~~provide a dataset folder path with another "image" subfolder with the pics~~~
# ~~~colmap can be installed to PATH or linked as an argument (--colmap_path)~~~
# usage: (for LLFF format, nvdiffrec)
# colmap2poses.py --mask "/path/to/dataset/"