Skip to content

Instantly share code, notes, and snippets.

@LMescheder
LMescheder / inside_mesh.py
Last active Aug 4, 2020
check_mesh_contains function
View inside_mesh.py
import numpy as np
from triangle_hash import TriangleHash as _TriangleHash
def check_mesh_contains(mesh, points, hash_resolution=512):
intersector = MeshIntersector(mesh, hash_resolution)
contains = intersector.query(points)
return contains
@LMescheder
LMescheder / TheNumericsOfGANs.ipynb
Last active Dec 7, 2017
This notebook contains the code for the toy experiment in the paper The Numerics of GANs.
View TheNumericsOfGANs.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.