Skip to content

Instantly share code, notes, and snippets.

# Elapsed time comments correspond to a 842 images dataset taken with a Pixel 9 Pro phone.
# ~~~~ variables ~~~~
INPUT_PATH=~/gaussiansplats_images/park2
OUTPUTDIR=~/gaussiansplats/park2
CHECKPOINTDIR=/tmp
# ~~~~ extract video frames from a flat video in LOG color profile and using rawtherapee-cli to change the colors ~~~~
# cd $INPUT_PATH
# mkdir -p extracted_images images

Build colmap with CUDA support

Instructions are for Ubuntu 22.04, with some notes for Ubuntu 24.04 but I didn't test it on 24.04, only on 22.04.

We'll install the following versions:

  • Ubuntu 22.04 with nvidia-driver-580 and cuda 12.9.1 (from nvidia apt repository)
  • cmake 3.28.4 (installed via pip)
  • boost 1.74.0 (that comes from apt)
  • googletest 1.16.0 (cloned in ceres-solver/third_party)
import GUI from "lil-gui";
import type { Entity } from "aframe";
AFRAME.registerComponent("lil-gui", {
init: function () {
// Add styles for folder titles
const style = document.createElement("style");
style.textContent = `
.lil-gui .entity-title {
font-size: 1.2em;
@vincentfretin
vincentfretin / flatten_redux.bash
Last active August 29, 2015 14:27
Flatten redux and react-redux for react native playground
cd /tmp
npm install [email protected]
cat node_modules/redux/src/createStore.js node_modules/redux/src/utils/* > redux.js
sed -e 's@^export default @@' -e 's@^export @@' -e 's@^import.*@@' \
-e 's@`"${actionType.toString()}"`@actionType.toString()@' \
redux.js >redux_wo_import_export.js
cat << "EOF" >> redux_wo_import_export.js
@vincentfretin
vincentfretin / check_containers.bash
Created August 17, 2015 12:30
script to check all your ubuntu(debootstrap):14.04 containers for updates, uses https://github.com/mafr/docker-update-check
./update-check run
./update-check update
for container in `docker ps -q`; do
./update-check check $container
docker inspect --format '{{.Name}}' $container
done