Skip to content

Instantly share code, notes, and snippets.

View fgolemo's full-sized avatar
:shipit:

Florian Golemo fgolemo

:shipit:
View GitHub Profile
@fgolemo
fgolemo / ase-depth-alignment-demo1.html
Created March 7, 2025 17:07
ASE Depth Alignment Demo
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="en">
<head><meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>ase-alignment-demo</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<style type="text/css">
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
@fgolemo
fgolemo / autobot_omniglot.ipynb
Created March 1, 2022 22:28
Omniglot toy example for Autobots: Latent Variable Sequential Set Transformers
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fgolemo
fgolemo / autobots_omniglot.ipynb
Created March 1, 2022 22:26
Omniglot example for Autobots: Latent Variable Sequential Set Transformers
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fgolemo
fgolemo / autobot_toy.ipynb
Created March 1, 2022 22:25
Toy example for Autobots: Latent Variable Sequential Set Transformers
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fgolemo
fgolemo / iclr22-crawl-review-scores.py
Last active January 17, 2022 19:23
Crawl ICLR 22 review scores, confidences, titles, links for visualization.
### ICLR 2022 Scraper
import os.path
import pickle
import urllib.request
import json
from math import ceil
from multiprocessing import Queue, Process
from tqdm import trange, tqdm
# RPi
import time
# import RPi.GPIO as GPIO
import paho.mqtt.client as mqtt
import numpy as np
import datetime
import time
import h5py
NODEMCU_SEND_TIME = 2 # seconds between Node broadcasts
@fgolemo
fgolemo / autobot_toy.ipynb
Created February 19, 2021 05:48
autobot_toy.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fgolemo
fgolemo / pybullet_camera_example.py
Last active February 4, 2021 19:21
PyBullet shitty rendering sample
import time
import numpy as np
import pybullet_utils.bullet_client as bc
import pybullet
import pybullet_data
import matplotlib.pyplot as plt
from tqdm import trange
# simulator 0
p = bc.BulletClient(connection_mode=pybullet.DIRECT)
@fgolemo
fgolemo / 3d_rotate_reproject.py
Last active July 11, 2023 18:02
3D rotation and reprojection in pytorch, i.e. differentiable
import numpy as np
import math
import torch
from torchvision import datasets
import cv2 # OpenCV, this is only used for visualization, see bottom of file
def rotation_matrix(axis, theta):
"""
Generalized 3d rotation via Euler-Rodriguez formula, https://www.wikiwand.com/en/Euler%E2%80%93Rodrigues_formula
@fgolemo
fgolemo / xarm-controller.py
Created October 24, 2019 23:11
Originally written by @maximecb
"""
sudo apt-get install libhidapi-hidraw0 libhidapi-libusb0
pip3 install --user hid
Notes:
- servos_off will power off the servos
- sending a movement command wakes up unpowered servos
- position readouts are sadly pretty slow, they can take up to 450ms
"""