This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# also change 3dscan path in 430 dir | |
# also copy dj's 430 dir if needed | |
cmake_minimum_required(VERSION 2.8.12) | |
project(hxfr C CXX) | |
set(PROJECT_VERSION_MAJOR 0) | |
set(PROJECT_VERSION_MINOR 5) | |
set(PROJECT_VERSION_PATCH 0) | |
set(PROJECT_VERSION_TWEAK 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Himax CX3 USB dongle - NIR/Depth 940 gray camera sensor | |
SUBSYSTEM=="usb", ATTR{idVendor}=="<uid>", ATTR{idProduct}=="<gid>", MODE:="0666", OWNER:="root", GROUP:="root" | |
# Himax CX3 USB dongle - RGB color camera sensor | |
#SUBSYSTEM=="usb", ATTR{idVendor}=="1080", ATTR{idProduct}=="1245", MODE:="0666", OWNER:="root", GROUP:="video" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf /home/<username>/3DScan/depth | |
rm -rf /home/<username>/3DScan/color | |
mkdir /home/<username>/3DScan/depth | |
mkdir /home/<username>/3DScan/color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tqdm import tqdm | |
import subprocess | |
import sys | |
import os | |
from multiprocessing import Pool, cpu_count, Manager | |
from time import perf_counter | |
if len(sys.argv) != 3: | |
print('usage: gen_res.py /path/to/image /path/to/output') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from icecream import ic | |
import open3d as o3d | |
import sys | |
import os | |
import numpy as np | |
import pickle | |
from copy import deepcopy | |
if len(sys.argv) != 4: | |
# base folder, image 1, image 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name lemmy show top comment | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @include https://lemmy.*/post* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=lemmy.world | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to use, pip install gymnasium-2048 first then replace the second file in the package | |
from typing import List | |
import gymnasium as gym | |
from tqdm import trange | |
import numpy as np | |
np.random.seed(0) | |
import pandas as pd | |
from copy import deepcopy | |
from multiprocessing import Pool, cpu_count |
OlderNewer