Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Dimson turtlesoupy

View GitHub Profile
View gist:5f3e661be0ed48f31051ce7a62edcad1
diff --git a/3rdparty/filament/filament_build.cmake b/3rdparty/filament/filament_build.cmake
index c44008ad..21bec6ca 100644
--- a/3rdparty/filament/filament_build.cmake
+++ b/3rdparty/filament/filament_build.cmake
@@ -2,8 +2,8 @@ include(ExternalProject)
set(FILAMENT_ROOT "${CMAKE_BINARY_DIR}/filament-binaries")
-set(FILAMENT_GIT_REPOSITORY "https://github.com/intel-isl/filament.git")
-set(FILAMENT_GIT_TAG "release")
View dist.csv
We can't make this file beautiful and searchable because it's too large.
0.24589
0.586201
0.349737
0.206746
0.238344
0.204539
0.164124
0.205543
0.382237
0.403824
View coords.csv
We can't make this file beautiful and searchable because it's too large.
-5,54,12
-5,54,13
-5,55,12
-5,55,13
-5,55,12
-5,55,13
-6,54,12
-6,55,12
-6,54,12
-6,54,13
View display.py
import ipywidgets as widgets
slider_to_idx = {}
sliders = []
slider_range = 50
slider_step = 0.1
img_widgets = [
image_widget_from_pil_image(show_image(tensors[i, :, :, :]))
View notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View cpp_ext.cpp
#include <torch/extension.h>
#include "voxels.hpp"
namespace py = pybind11;
PYBIND11_MODULE(_metapedia_cpp_ext, m) {
using namespace metapedia;
m.doc() = "Metapedia CPP extensions";
m.attr("__version__") = "0.0.1";
View voxels.hpp
#pragma once
#include <torch/extension.h>
#include "utils.hpp"
namespace metapedia {
using namespace torch::indexing;
struct EmptyVoxel {};
View env.txt
name: company_makeup
channels:
- stanfordnlp
- pytorch
- conda-forge
- defaults
dependencies:
- _libgcc_mutex=0.1=conda_forge
- _openmp_mutex=4.5=1_llvm
- _pytorch_select=0.2=gpu_0
View sample.json
{
"words": [
[
"alpano",
"apportation",
"apprentiction",
"barbarium",
"barboole",
"bezirous",
"bodysplosion",
View 6m9t2k41fn9b.c
#ifndef TACO_C_HEADERS
#define TACO_C_HEADERS
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <math.h>
#include <complex.h>
#include <string.h>
#define TACO_MIN(_a,_b) ((_a) < (_b) ? (_a) : (_b))