Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FreeformRobotics/OTS
/ functions
Functions
180 in github.com/FreeformRobotics/OTS
⨍
Functions
180
◇
Types & classes
46
↓ 11 callers
Method
put
(self, result)
lib/nn/modules/comm.py:26
↓ 10 callers
Method
assertTensorClose
(self, a, b, atol=1e-3, rtol=1e-3)
lib/nn/modules/unittest.py:24
↓ 8 callers
Method
get
(self)
lib/nn/modules/comm.py:32
↓ 8 callers
Method
round2nearest_multiple
(self, x, p)
dataset.py:66
↓ 6 callers
Function
_find_bn
(module)
lib/nn/modules/tests/test_sync_batchnorm.py:30
↓ 5 callers
Method
_checkBatchNormResult
Check the forward and backward for the customized batch normalization.
lib/nn/modules/tests/test_sync_batchnorm.py:44
↓ 5 callers
Function
_unsqueeze_ft
add new dementions at the front and the tail
lib/nn/modules/batchnorm.py:29
↓ 5 callers
Function
conv3x3
3x3 convolution with padding
models/resnet.py:18
↓ 5 callers
Function
imresize
(im, size, interp='bilinear')
dataset.py:9
↓ 4 callers
Method
_make_layer
(self, block, planes, blocks, stride=1)
models/resnet.py:126
↓ 3 callers
Method
__init__
(self, num_class=150, fc_dim=4096, use_softmax=False, pool_scales=(1, 2, 3, 6))
models/models.py:176
↓ 3 callers
Method
_add_weighted
return *dest* by `dest := dest*alpha + delta*beta + bias`
lib/nn/modules/batchnorm.py:119
↓ 3 callers
Method
img_transform
(self, img)
dataset.py:53
↓ 3 callers
Function
load_url
(url, model_dir='./pretrained', map_location=None)
models/utils.py:10
↓ 2 callers
Method
__init__
(self, root_dataset, odgt, opt, **kwargs)
dataset.py:207
↓ 2 callers
Method
__init__
(self, in_dim, one_hot_cls_num)
models/ots.py:42
↓ 2 callers
Method
__init__
(self, block, layers, num_classes=1000)
models/resnet.py:97
↓ 2 callers
Method
_check_input_dim
(self, input)
lib/nn/modules/batchnorm.py:198
↓ 2 callers
Method
_process_next_batch
(self, batch)
lib/utils/data/dataloader.py:302
↓ 2 callers
Method
_put_indices
(self)
lib/utils/data/dataloader.py:293
↓ 2 callers
Method
_shutdown_workers
(self)
lib/utils/data/dataloader.py:317
↓ 2 callers
Function
_sum_ft
sum over the first and last dimention
lib/nn/modules/batchnorm.py:24
↓ 2 callers
Function
as_numpy
(obj)
lib/utils/th.py:18
↓ 2 callers
Function
as_numpy
(v)
lib/nn/modules/unittest.py:17
↓ 2 callers
Function
async_copy_to
(obj, dev, main_stream=None)
lib/nn/parallel/data_parallel.py:13
↓ 2 callers
Method
cumsum
(sequence)
lib/utils/data/dataset.py:61
↓ 2 callers
Function
execute_replication_callbacks
Execute an replication callback `__data_parallel_replicate__` on each module created by original replication. The callback will be invoked w
lib/nn/modules/replicate.py:27
↓ 2 callers
Function
handy_var
(a, unbias=True)
lib/nn/modules/tests/test_numeric_batchnorm.py:18
↓ 2 callers
Function
pin_memory_batch
(batch)
lib/utils/data/dataloader.py:145
↓ 2 callers
Method
segm_transform
(self, segm)
dataset.py:60
↓ 2 callers
Function
weight_init
(module: nn.Module)
models/ots.py:9
↓ 1 callers
Method
__data_parallel_replicate__
(self, ctx, copy_id)
lib/nn/modules/batchnorm.py:88
↓ 1 callers
Method
__init__
(self, dataset, indices)
lib/utils/data/dataset.py:94
↓ 1 callers
Function
_async_copy_stream
(inputs, device_ids)
lib/nn/parallel/data_parallel.py:82
↓ 1 callers
Method
_compute_mean_std
Compute the mean and standard-deviation with sum and square-sum. This method also maintains the moving average on the master device.
lib/nn/modules/batchnorm.py:123
↓ 1 callers
Method
_get_batch
(self)
lib/utils/data/dataloader.py:252
↓ 1 callers
Function
_get_stream
Gets a background stream for copying between CPU and GPU
lib/nn/parallel/data_parallel.py:104
↓ 1 callers
Method
_get_sub_batch
(self)
dataset.py:85
↓ 1 callers
Function
_set_SIGCHLD_handler
()
lib/utils/data/dataloader.py:163
↓ 1 callers
Method
_syncParameters
(self, bn1, bn2)
lib/nn/modules/tests/test_sync_batchnorm.py:37
↓ 1 callers
Method
add
(self, val, weight)
utils.py:55
↓ 1 callers
Method
build_decoder
(arch='ppm', fc_dim=512, num_class=150, weights='', use_softmax=Fa
models/models.py:81
↓ 1 callers
Method
build_encoder
(arch='resnet50dilated', fc_dim=512, weights='')
models/models.py:62
↓ 1 callers
Function
classify_step
(logit, classes)
functions.py:156
↓ 1 callers
Function
default_argument_parser
()
functions.py:24
↓ 1 callers
Function
dict_gather
Gathers variables from different GPUs on a specified device (-1 means the CPU), with dictionary support.
lib/nn/parallel/data_parallel.py:27
↓ 1 callers
Function
gather_map
(outputs)
lib/nn/parallel/data_parallel.py:32
↓ 1 callers
Function
get_img_list
(path)
functions.py:82
↓ 1 callers
Function
get_obj_onehot_vector
(img_name, one_hot)
functions.py:149
↓ 1 callers
Method
get_object_feature
(self, segSize, img_resized_list, batch_data)
main.py:34
↓ 1 callers
Function
img2onehot
(img_name, one_hot)
functions.py:143
↓ 1 callers
Method
initialize
(self, val, weight)
utils.py:42
↓ 1 callers
Function
load_checkpoint
(checkpoint, obj_model, classifier)
functions.py:134
↓ 1 callers
Function
load_classes
(class_file)
functions.py:118
↓ 1 callers
Function
load_dict
(filename)
functions.py:72
↓ 1 callers
Function
load_seg_module
(cfg)
functions.py:88
↓ 1 callers
Function
load_test_data
(cfg)
functions.py:104
↓ 1 callers
Method
parse_input_list
(self, odgt, max_sample=-1, start_idx=-1, end_idx=-1)
dataset.py:38
↓ 1 callers
Method
pixel_acc
(self, pred, label)
models/models.py:12
↓ 1 callers
Method
register_slave
Register an slave device. Args: identifier: an identifier, usually is the device id. Returns: a `SlavePipe` obj
lib/nn/modules/comm.py:78
↓ 1 callers
Method
run_master
Main entry for the master device in each forward pass. The messages were first collected from each devices (including the master devi
lib/nn/modules/comm.py:96
↓ 1 callers
Method
run_slave
(self, msg)
lib/nn/modules/comm.py:49
↓ 1 callers
Method
test
(self)
main.py:108
↓ 1 callers
Function
unique
(ar, return_index=False, return_inverse=False, return_counts=False)
utils.py:68
↓ 1 callers
Method
update
(self, val, weight=1)
utils.py:49
Method
__add__
(self, other)
lib/utils/data/dataset.py:22
Method
__del__
(self)
lib/utils/data/dataloader.py:336
Method
__getitem__
(self, index)
dataset.py:110
Method
__getitem__
(self, index)
dataset.py:211
Method
__getitem__
(self, index)
dataset.py:262
Method
__getitem__
(self, index)
lib/utils/data/dataset.py:16
Method
__getitem__
(self, index)
lib/utils/data/dataset.py:42
Method
__getitem__
(self, idx)
lib/utils/data/dataset.py:78
Method
__getitem__
(self, idx)
lib/utils/data/dataset.py:98
Method
__getstate__
(self)
lib/utils/data/dataloader.py:309
Method
__init__
(self)
utils.py:35
Method
__init__
(self, odgt, opt, **kwargs)
dataset.py:23
Method
__init__
(self, root_dataset, odgt, opt, batch_per_gpu=1, **kwargs)
dataset.py:71
Method
__init__
(self, odgt, opt, **kwargs)
dataset.py:259
Method
__init__
(self, cfg, args)
main.py:18
Method
__init__
(self, exc_info)
lib/utils/data/dataloader.py:28
Method
__init__
(self, loader)
lib/utils/data/dataloader.py:191
Method
__init__
(self, dataset, batch_size=1, shuffle=False, sampler=None, batch_sampler=None, num_workers=0,
lib/utils/data/dataloader.py:383
Method
__init__
(self, dataset, num_replicas=None, rank=None)
lib/utils/data/distributed.py:25
Method
__init__
(self, data_tensor, target_tensor)
lib/utils/data/dataset.py:37
Method
__init__
(self, datasets)
lib/utils/data/dataset.py:69
Method
__init__
(self, data_source)
lib/utils/data/sampler.py:12
Method
__init__
(self, data_source)
lib/utils/data/sampler.py:29
Method
__init__
(self, data_source)
lib/utils/data/sampler.py:46
Method
__init__
(self, indices)
lib/utils/data/sampler.py:63
Method
__init__
(self, weights, num_samples, replacement=True)
lib/utils/data/sampler.py:84
Method
__init__
(self, sampler, batch_size, drop_last)
lib/utils/data/sampler.py:112
Method
__init__
(self)
lib/nn/modules/comm.py:21
Method
__init__
Args: master_callback: a callback to be invoked after having collected messages from slave devices.
lib/nn/modules/comm.py:67
Method
__init__
(self, num_features, eps=1e-5, momentum=0.001, affine=True)
lib/nn/modules/batchnorm.py:39
Method
__init__
(self)
models/models.py:9
Method
__init__
(self, net_enc, net_dec, crit, deep_sup_scale=None)
models/models.py:22
Method
__init__
(self, orig_resnet, dilate_scale=8)
models/models.py:112
Method
__init__
(self, in_dim, compress)
models/ots.py:16
Method
__init__
(self, num_classes, in_dim)
models/ots.py:71
next →
1–100 of 180, ranked by callers