Skip to content

Instantly share code, notes, and snippets.

View dilaragokay's full-sized avatar
🎯
Focusing

Dilara Gokay dilaragokay

🎯
Focusing
View GitHub Profile
@dilaragokay
dilaragokay / render_mesh_o3d.py
Created March 28, 2021 23:31
Render depth map and RGB image of ModelNet10 chair dataset from various view points
'''
Render depth map and RGB image of ModelNet10 chair dataset from various view points
'''
import open3d as o3d
import numpy as np
import json
NUM_VIEWS = 6
@dilaragokay
dilaragokay / framenet_normal_eval.py
Created December 22, 2020 20:08
Compares ground truth normal maps and the ones predicted by FrameNet
'''
Compares ground truth normal maps and the ones predicted by FrameNet
'''
real_normal_maps_paths = [
'chair/test/chair_0890_001.jpg',
'chair/test/chair_0904_009.jpg',
'desk/test/desk_0201_004.jpg',
'desk/test/desk_0203_012.jpg',
'dresser/test/dresser_0201_005.jpg',
@dilaragokay
dilaragokay / flyingthings_analysis.py
Created December 18, 2020 13:03
Analyze the flow of points in FlyingThings3D dataset
'''
Finds number of points which do not move for each point cloud in FlyingThings3D dataset.
'''
import numpy as np
import os
root = "./data_processed_maxcut_35_20k_2k_8192"
for file in os.listdir(root):
if file.endswith(".npz"):