MCPcopy Create free account

hub / github.com/chrischoy/3D-R2N2 / functions

Functions196 in github.com/chrischoy/3D-R2N2

↓ 22 callersMethodwrite
(self, fp)
lib/binvox_rw.py:104
↓ 19 callersMethod__init__
(self, prev_layer)
lib/layers.py:108
↓ 10 callersFunctioncfg_from_list
Set config keys via list (e.g., from command line).
lib/config.py:141
↓ 8 callersFunctionsetBit
(value, position, on)
lib/read_mesh.py:511
↓ 5 callersFunctioncategory_model_id_pair
Load category, model names from a shapenet dataset.
lib/data_io.py:14
↓ 5 callersFunctionkill_processes
(queue, processes)
lib/data_process.py:176
↓ 5 callersMethodload
(self, filename, ignore_param=True)
models/net.py:69
↓ 5 callersFunctiontexture_relative_path
(fullpath)
lib/read_mesh.py:219
↓ 4 callersFunctionbbox
Compute bounding box of vertex array.
lib/read_mesh.py:109
↓ 4 callersFunctiontranslate
Translate array of vertices by vector t.
lib/read_mesh.py:140
↓ 3 callersMethodclearModel
(self)
lib/blender_renderer.py:157
↓ 3 callersFunctionload_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 callersFunctionmake_data_processes
Make a set of data processes for parallel data loading.
lib/data_process.py:191
↓ 3 callersMethodprediction
(self)
lib/layers.py:588
↓ 3 callersMethodrender
Render the object
lib/blender_renderer.py:185
↓ 3 callersMethodtest_output
Generate the reconstruction, loss, and activation. Evaluate loss if ground truth output is given. Otherwise, return reconstruction and
lib/solver.py:207
↓ 2 callersMethod__init__
(self)
lib/blender_renderer.py:78
↓ 2 callersFunctioncreate_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 callersMethoderror
(self, y, threshold=0.5)
lib/layers.py:591
↓ 2 callersFunctiongenerate_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 callersFunctionget_name
Create model name based of filename ("path/fname.js" -> "fname").
lib/read_mesh.py:102
↓ 2 callersMethodget_next_minibatch
(self)
lib/data_process.py:60
↓ 2 callersFunctionget_trainable_params
()
lib/layers.py:13
↓ 2 callersFunctionimage_transform
Takes numpy.array img
lib/data_augmentation.py:6
↓ 2 callersMethodinitialize
(self, models_fn, viewport_size_x, viewport_size_y)
lib/blender_renderer.py:124
↓ 2 callersMethodloadModel
(self, file_path=None)
lib/blender_renderer.py:170
↓ 2 callersMethodloss
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 callersFunctionparse_obj
Parse OBJ file.
lib/read_mesh.py:372
↓ 2 callersFunctionread_header
Read binvox header. Mostly meant for internal use.
lib/binvox_rw.py:108
↓ 2 callersMethodselectModel
(self)
lib/blender_renderer.py:147
↓ 2 callersMethodsetTransparency
transparency is either 'SKY', 'TRANSPARENT' If set 'SKY', render background using sky color.
lib/blender_renderer.py:142
↓ 2 callersMethodsetViewpoint
(self, azimuth, altitude, yaw, distance_ratio, fov)
lib/blender_renderer.py:132
↓ 2 callersMethodset_lr
(self, lr)
lib/solver.py:99
↓ 2 callersMethodshuffle_db_inds
(self)
lib/data_process.py:52
↓ 2 callersMethodtic
(self)
lib/utils.py:16
↓ 2 callersMethodtoc
(self, average=True)
lib/utils.py:21
↓ 2 callersFunctiontrain_net
Main training function
lib/train_net.py:32
↓ 1 callersFunctionADAM
ADAM update
lib/solver.py:20
↓ 1 callersFunctionSGD
Stochastic Gradient Descent w/ momentum
lib/solver.py:51
↓ 1 callersMethod__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 callersFunction_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 callersMethod_set_lighting
(self)
lib/blender_renderer.py:129
↓ 1 callersFunctionadd_path
(path)
lib/_init_paths.py:7
↓ 1 callersFunctionadd_random_color_background
(im, color_range)
lib/data_augmentation.py:39
↓ 1 callersFunctionbottom
Align bottom of the model with the floor (Y-axis) and center it around X and Z.
lib/read_mesh.py:176
↓ 1 callersFunctioncenter
Center model (middle of bounding box).
lib/read_mesh.py:150
↓ 1 callersFunctioncenterxz
Center model around X and Z.
lib/read_mesh.py:189
↓ 1 callersFunctioncfg_from_file
Load a config file and merge it into the default options.
lib/config.py:132
↓ 1 callersFunctioncmd_exists
(cmd)
demo.py:25
↓ 1 callersMethodcompile_model
(self, policy=cfg.TRAIN.POLICY)
lib/solver.py:85
↓ 1 callersFunctioncrop_center
(im, new_height, new_width)
lib/data_augmentation.py:29
↓ 1 callersFunctiondownload_model
(fn)
demo.py:29
↓ 1 callersFunctionevaluate_voxel_prediction
(preds, gt, thresh)
lib/voxel.py:4
↓ 1 callersFunctionextract_face_colors
Extract colors from materials and assign them to faces
lib/read_mesh.py:655
↓ 1 callersFunctionextract_material_colors
Extract diffuse colors from MTL materials
lib/read_mesh.py:633
↓ 1 callersFunctionfile_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 callersFunctiongenerate_color_rgb
(c)
lib/read_mesh.py:612
↓ 1 callersFunctiongenerate_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 callersFunctiongenerate_morph_color
(name, colors)
lib/read_mesh.py:628
↓ 1 callersFunctiongenerate_morph_vertex
(name, vertices)
lib/read_mesh.py:623
↓ 1 callersFunctiongenerate_mtl
Generate dummy materials (if there is no MTL file).
lib/read_mesh.py:832
↓ 1 callersFunctiongenerate_vertex
(v, option_vertices_truncate, scale)
lib/read_mesh.py:597
↓ 1 callersFunctionget_model_file
(category, model_id)
lib/data_io.py:46
↓ 1 callersFunctionget_models
Returns a tuple of sample models.
models/__init__.py:7
↓ 1 callersFunctionget_rendering_file
(category, model_id, rendering_id)
lib/data_io.py:54
↓ 1 callersFunctionget_voxel_file
(category, model_id)
lib/data_io.py:50
↓ 1 callersFunctionget_while_running
(data_process, data_queue, sleep_time=0)
lib/data_process.py:203
↓ 1 callersFunctionhexcolor
(c)
lib/read_mesh.py:593
↓ 1 callersFunctionis_quad_flat
(f)
lib/read_mesh.py:907
↓ 1 callersFunctionis_quad_flat_uv
(f)
lib/read_mesh.py:911
↓ 1 callersFunctionis_quad_smooth
(f)
lib/read_mesh.py:915
↓ 1 callersFunctionis_quad_smooth_uv
(f)
lib/read_mesh.py:919
↓ 1 callersFunctionis_triangle_flat
(f)
lib/read_mesh.py:891
↓ 1 callersFunctionis_triangle_flat_uv
(f)
lib/read_mesh.py:895
↓ 1 callersFunctionis_triangle_smooth
(f)
lib/read_mesh.py:899
↓ 1 callersFunctionis_triangle_smooth_uv
(f)
lib/read_mesh.py:903
↓ 1 callersMethodload_datum
(self, path)
lib/data_process.py:95
↓ 1 callersFunctionload_demo_images
()
demo.py:37
↓ 1 callersMethodload_img
(self, category, model_id, image_id)
lib/data_process.py:161
↓ 1 callersMethodload_label
(self, path)
lib/data_process.py:98
↓ 1 callersMethodload_label
(self, category, model_id)
lib/data_process.py:168
↓ 1 callersFunctionmain
()
main.py:70
↓ 1 callersFunctionmain
Main demo function
demo.py:46
↓ 1 callersFunctionmain
()
tools/render_models.py:77
↓ 1 callersFunctionmain
Test function
lib/blender_renderer.py:286
↓ 1 callersFunctionmain
Test function
lib/train_net.py:78
↓ 1 callersFunctionmax_or_nan
(params)
lib/solver.py:12
↓ 1 callersFunctionmodel_names
Return model names
lib/data_io.py:19
↓ 1 callersMethodnetwork_definition
A child network must define self.loss self.error self.params self.output self.activations is optional
models/net.py:43
↓ 1 callersFunctionparse_args
()
main.py:19
↓ 1 callersFunctionparse_mtl
Parse MTL file.
lib/read_mesh.py:224
↓ 1 callersFunctionparse_vertex
Parse text chunk specifying single vertex. Possible formats: vertex index vertex index / texture index vertex index / text
lib/read_mesh.py:346
↓ 1 callersMethodpost_processing
(self)
models/net.py:56
↓ 1 callersFunctionpreprocess_img
(im, train=True)
lib/data_augmentation.py:55
↓ 1 callersFunctionread_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 callersMethodsave
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 callersMethodsetModelIndex
(self, model_idx)
lib/blender_renderer.py:167
↓ 1 callersMethodset_output
Override the function
lib/layers.py:115
↓ 1 callersMethodsetup
(self)
models/net.py:39
↓ 1 callersMethodshutdown
(self)
lib/data_process.py:68
next →1–100 of 196, ranked by callers