Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chrischoy/3D-R2N2
/ functions
Functions
196 in github.com/chrischoy/3D-R2N2
⨍
Functions
196
◇
Types & classes
33
↓ 22 callers
Method
write
(self, fp)
lib/binvox_rw.py:104
↓ 19 callers
Method
__init__
(self, prev_layer)
lib/layers.py:108
↓ 10 callers
Function
cfg_from_list
Set config keys via list (e.g., from command line).
lib/config.py:141
↓ 8 callers
Function
setBit
(value, position, on)
lib/read_mesh.py:511
↓ 5 callers
Function
category_model_id_pair
Load category, model names from a shapenet dataset.
lib/data_io.py:14
↓ 5 callers
Function
kill_processes
(queue, processes)
lib/data_process.py:176
↓ 5 callers
Method
load
(self, filename, ignore_param=True)
models/net.py:69
↓ 5 callers
Function
texture_relative_path
(fullpath)
lib/read_mesh.py:219
↓ 4 callers
Function
bbox
Compute bounding box of vertex array.
lib/read_mesh.py:109
↓ 4 callers
Function
translate
Translate array of vertices by vector t.
lib/read_mesh.py:140
↓ 3 callers
Method
clearModel
(self)
lib/blender_renderer.py:157
↓ 3 callers
Function
load_model
Creates and returns an instance of the model given its class name. The created model has a single placeholder node for feeding images.
models/__init__.py:12
↓ 3 callers
Function
make_data_processes
Make a set of data processes for parallel data loading.
lib/data_process.py:191
↓ 3 callers
Method
prediction
(self)
lib/layers.py:588
↓ 3 callers
Method
render
Render the object
lib/blender_renderer.py:185
↓ 3 callers
Method
test_output
Generate the reconstruction, loss, and activation. Evaluate loss if ground truth output is given. Otherwise, return reconstruction and
lib/solver.py:207
↓ 2 callers
Method
__init__
(self)
lib/blender_renderer.py:78
↓ 2 callers
Function
create_materials
Parse MTL file and create mapping between its materials and OBJ materials. Eventual edge cases are handled here (missing materials, missing MTL
lib/read_mesh.py:854
↓ 2 callers
Method
error
(self, y, threshold=0.5)
lib/layers.py:591
↓ 2 callers
Function
generate_color
Generate hex color corresponding to integer. Colors should have well defined ordering. First N colors are hardcoded, then colors are random
lib/read_mesh.py:778
↓ 2 callers
Function
get_name
Create model name based of filename ("path/fname.js" -> "fname").
lib/read_mesh.py:102
↓ 2 callers
Method
get_next_minibatch
(self)
lib/data_process.py:60
↓ 2 callers
Function
get_trainable_params
()
lib/layers.py:13
↓ 2 callers
Function
image_transform
Takes numpy.array img
lib/data_augmentation.py:6
↓ 2 callers
Method
initialize
(self, models_fn, viewport_size_x, viewport_size_y)
lib/blender_renderer.py:124
↓ 2 callers
Method
loadModel
(self, file_path=None)
lib/blender_renderer.py:170
↓ 2 callers
Method
loss
y must be a tensor that has the same dimensions as the input. For each channel, only one element is one indicating the ground truth p
lib/layers.py:594
↓ 2 callers
Function
parse_obj
Parse OBJ file.
lib/read_mesh.py:372
↓ 2 callers
Function
read_header
Read binvox header. Mostly meant for internal use.
lib/binvox_rw.py:108
↓ 2 callers
Method
selectModel
(self)
lib/blender_renderer.py:147
↓ 2 callers
Method
setTransparency
transparency is either 'SKY', 'TRANSPARENT' If set 'SKY', render background using sky color.
lib/blender_renderer.py:142
↓ 2 callers
Method
setViewpoint
(self, azimuth, altitude, yaw, distance_ratio, fov)
lib/blender_renderer.py:132
↓ 2 callers
Method
set_lr
(self, lr)
lib/solver.py:99
↓ 2 callers
Method
shuffle_db_inds
(self)
lib/data_process.py:52
↓ 2 callers
Method
tic
(self)
lib/utils.py:16
↓ 2 callers
Method
toc
(self, average=True)
lib/utils.py:21
↓ 2 callers
Function
train_net
Main training function
lib/train_net.py:32
↓ 1 callers
Function
ADAM
ADAM update
lib/solver.py:20
↓ 1 callers
Function
SGD
Stochastic Gradient Descent w/ momentum
lib/solver.py:51
↓ 1 callers
Method
__init__
data_queue : Multiprocessing queue data_paths : list of data and label pair used to load data repeat : if set True, return da
lib/data_process.py:34
↓ 1 callers
Function
_merge_a_into_b
Merge config dictionary a into config dictionary b, clobbering the options in b whenever they are also specified in a.
lib/config.py:104
↓ 1 callers
Method
_set_lighting
(self)
lib/blender_renderer.py:129
↓ 1 callers
Function
add_path
(path)
lib/_init_paths.py:7
↓ 1 callers
Function
add_random_color_background
(im, color_range)
lib/data_augmentation.py:39
↓ 1 callers
Function
bottom
Align bottom of the model with the floor (Y-axis) and center it around X and Z.
lib/read_mesh.py:176
↓ 1 callers
Function
center
Center model (middle of bounding box).
lib/read_mesh.py:150
↓ 1 callers
Function
centerxz
Center model around X and Z.
lib/read_mesh.py:189
↓ 1 callers
Function
cfg_from_file
Load a config file and merge it into the default options.
lib/config.py:132
↓ 1 callers
Function
cmd_exists
(cmd)
demo.py:25
↓ 1 callers
Method
compile_model
(self, policy=cfg.TRAIN.POLICY)
lib/solver.py:85
↓ 1 callers
Function
crop_center
(im, new_height, new_width)
lib/data_augmentation.py:29
↓ 1 callers
Function
download_model
(fn)
demo.py:29
↓ 1 callers
Function
evaluate_voxel_prediction
(preds, gt, thresh)
lib/voxel.py:4
↓ 1 callers
Function
extract_face_colors
Extract colors from materials and assign them to faces
lib/read_mesh.py:655
↓ 1 callers
Function
extract_material_colors
Extract diffuse colors from MTL materials
lib/read_mesh.py:633
↓ 1 callers
Function
file_exists
Return true if file exists and is accessible for reading. Should be safer than just testing for existence due to links and permissions magic o
lib/read_mesh.py:87
↓ 1 callers
Function
generate_color_rgb
(c)
lib/read_mesh.py:612
↓ 1 callers
Function
generate_materials
Generate JS array of materials objects JS material objects are basically prettified one-to-one mappings of MTL properties in JSON format.
lib/read_mesh.py:802
↓ 1 callers
Function
generate_morph_color
(name, colors)
lib/read_mesh.py:628
↓ 1 callers
Function
generate_morph_vertex
(name, vertices)
lib/read_mesh.py:623
↓ 1 callers
Function
generate_mtl
Generate dummy materials (if there is no MTL file).
lib/read_mesh.py:832
↓ 1 callers
Function
generate_vertex
(v, option_vertices_truncate, scale)
lib/read_mesh.py:597
↓ 1 callers
Function
get_model_file
(category, model_id)
lib/data_io.py:46
↓ 1 callers
Function
get_models
Returns a tuple of sample models.
models/__init__.py:7
↓ 1 callers
Function
get_rendering_file
(category, model_id, rendering_id)
lib/data_io.py:54
↓ 1 callers
Function
get_voxel_file
(category, model_id)
lib/data_io.py:50
↓ 1 callers
Function
get_while_running
(data_process, data_queue, sleep_time=0)
lib/data_process.py:203
↓ 1 callers
Function
hexcolor
(c)
lib/read_mesh.py:593
↓ 1 callers
Function
is_quad_flat
(f)
lib/read_mesh.py:907
↓ 1 callers
Function
is_quad_flat_uv
(f)
lib/read_mesh.py:911
↓ 1 callers
Function
is_quad_smooth
(f)
lib/read_mesh.py:915
↓ 1 callers
Function
is_quad_smooth_uv
(f)
lib/read_mesh.py:919
↓ 1 callers
Function
is_triangle_flat
(f)
lib/read_mesh.py:891
↓ 1 callers
Function
is_triangle_flat_uv
(f)
lib/read_mesh.py:895
↓ 1 callers
Function
is_triangle_smooth
(f)
lib/read_mesh.py:899
↓ 1 callers
Function
is_triangle_smooth_uv
(f)
lib/read_mesh.py:903
↓ 1 callers
Method
load_datum
(self, path)
lib/data_process.py:95
↓ 1 callers
Function
load_demo_images
()
demo.py:37
↓ 1 callers
Method
load_img
(self, category, model_id, image_id)
lib/data_process.py:161
↓ 1 callers
Method
load_label
(self, path)
lib/data_process.py:98
↓ 1 callers
Method
load_label
(self, category, model_id)
lib/data_process.py:168
↓ 1 callers
Function
main
()
main.py:70
↓ 1 callers
Function
main
Main demo function
demo.py:46
↓ 1 callers
Function
main
()
tools/render_models.py:77
↓ 1 callers
Function
main
Test function
lib/blender_renderer.py:286
↓ 1 callers
Function
main
Test function
lib/train_net.py:78
↓ 1 callers
Function
max_or_nan
(params)
lib/solver.py:12
↓ 1 callers
Function
model_names
Return model names
lib/data_io.py:19
↓ 1 callers
Method
network_definition
A child network must define self.loss self.error self.params self.output self.activations is optional
models/net.py:43
↓ 1 callers
Function
parse_args
()
main.py:19
↓ 1 callers
Function
parse_mtl
Parse MTL file.
lib/read_mesh.py:224
↓ 1 callers
Function
parse_vertex
Parse text chunk specifying single vertex. Possible formats: vertex index vertex index / texture index vertex index / text
lib/read_mesh.py:346
↓ 1 callers
Method
post_processing
(self)
models/net.py:56
↓ 1 callers
Function
preprocess_img
(im, train=True)
lib/data_augmentation.py:55
↓ 1 callers
Function
read_as_3d_array
Read binary binvox format as array. Returns the model with accompanying metadata. Voxels are stored in a three-dimensional numpy array, whi
lib/binvox_rw.py:121
↓ 1 callers
Method
save
Save the current network parameters to the save_dir and make a symlink to the latest param so that the training function can easily l
lib/solver.py:188
↓ 1 callers
Method
setModelIndex
(self, model_idx)
lib/blender_renderer.py:167
↓ 1 callers
Method
set_output
Override the function
lib/layers.py:115
↓ 1 callers
Method
setup
(self)
models/net.py:39
↓ 1 callers
Method
shutdown
(self)
lib/data_process.py:68
next →
1–100 of 196, ranked by callers