MCPcopy Create free account

hub / github.com/Chenzhaowei13/Light-Condition-Style-Transfer / functions

Functions228 in github.com/Chenzhaowei13/Light-Condition-Style-Transfer

↓ 16 callersMethodresize
Lane-Detection/tools/lane_evaluation/include/hungarianGraph.hpp:26
↓ 10 callersFunctionnorm_layer
(x)
SIM-CycleGAN/models/networks.py:33
↓ 10 callersMethodsave
save the current content to the HMTL file
SIM-CycleGAN/util/html.py:68
↓ 6 callersMethod__init__
(self, num_classes, encoder=None)
Lane-Detection/models/erfnet.py:180
↓ 6 callersMethod__init__
Initialize the GANLoss class. Parameters: gan_mode (str) - - the type of GAN objective. It currently supports vanilla, lsgan, an
SIM-CycleGAN/models/networks.py:275
↓ 4 callersMethodcreate_visdom_connections
If the program could not connect to Visdom server, this function will start a new server at port < self.port >
SIM-CycleGAN/util/visualizer.py:95
↓ 4 callersFunctionget_file_paths
(folder)
SIM-CycleGAN/datasets/make_dataset_aligned.py:6
↓ 4 callersMethodsplineInterpTimes
Lane-Detection/tools/lane_evaluation/src/spline.cpp:7
↓ 3 callersMethodadd_header
Insert a header to the HTML file Parameters: text (str) -- the header text
SIM-CycleGAN/util/html.py:39
↓ 3 callersMethodadd_images
add images to the HTML file Parameters: ims (str list) -- a list of image paths txts (str list) -- a list of image
SIM-CycleGAN/util/html.py:48
↓ 3 callersMethodbackward
Calculate losses, gradients, and update network weights; called in every training iteration
SIM-CycleGAN/models/template_model.py:87
↓ 3 callersMethodget
Download a dataset. Parameters: save_path (str) -- A directory to save the data to. dataset (str) -- (opt
SIM-CycleGAN/util/get_data.py:79
↓ 3 callersFunctionget_transform
(opt, params=None, grayscale=False, method=Image.BICUBIC, convert=True)
SIM-CycleGAN/data/base_dataset.py:81
↓ 3 callersFunctionmake_dataset
(dir, max_dataset_size=float("inf"))
SIM-CycleGAN/data/image_folder.py:24
↓ 3 callersMethodsave_networks
Save all the networks to the disk. Parameters: epoch (int) -- current epoch; used in the file name '%s_net_%s.pth' % (epoch, name
SIM-CycleGAN/models/base_model.py:142
↓ 2 callersFunctionSIM_Conv
(n, f=3, s=2, p=1)
SIM-CycleGAN/models/networks.py:207
↓ 2 callersFunctionSIM_Deconv
(n, f=3, s=2, p=1)
SIM-CycleGAN/models/networks.py:211
↓ 2 callersFunctionSIM_Moudle
Parameters: width (int) : -- the width of input images height (int) : -- the height of input images n
SIM-CycleGAN/models/networks.py:215
↓ 2 callersMethod_print
(self, text)
SIM-CycleGAN/util/get_data.py:35
↓ 2 callersFunctionalign_images
(a_file_paths, b_file_paths, target_path)
SIM-CycleGAN/datasets/make_dataset_aligned.py:20
↓ 2 callersMethodbackward_D_basic
Calculate GAN loss for the discriminator Parameters: netD (network) -- the discriminator D real (tensor array) -
SIM-CycleGAN/models/simcycle_gan_model.py:119
↓ 2 callersMethodcal_fun
Lane-Detection/tools/lane_evaluation/src/spline.cpp:103
↓ 2 callersMethodcompute_visuals
Calculate additional output images for visdom and HTML visualization
SIM-CycleGAN/models/base_model.py:107
↓ 2 callersFunctioncreate_dataset
Create a dataset given the option. This function wraps the class CustomDatasetDataLoader. This is the main interface between this package
SIM-CycleGAN/data/__init__.py:47
↓ 2 callersFunctioncreate_model
Create a model given the option. This function warps the class CustomDatasetDataLoader. This is the main interface between this package and '
SIM-CycleGAN/models/__init__.py:54
↓ 2 callersMethodeval
Make models eval mode during test time
SIM-CycleGAN/models/base_model.py:90
↓ 2 callersFunctionfind_dataset_using_name
Import the module "data/[dataset_name]_dataset.py". In the file, the class called DatasetNameDataset() will be instantiated. It has to be a s
SIM-CycleGAN/data/__init__.py:18
↓ 2 callersFunctionfind_model_using_name
Import the module "models/[model_name]_model.py". In the file, the class called DatasetNameModel() will be instantiated. It has to be a subcl
SIM-CycleGAN/models/__init__.py:25
↓ 2 callersMethodget_current_visuals
Return visualization images. train.py will display these images with visdom, and save the images to a HTML
SIM-CycleGAN/models/base_model.py:126
↓ 2 callersFunctionget_norm_layer
Return a normalization layer Parameters: norm_type (str) -- the name of the normalization layer: batch | instance | none For BatchNo
SIM-CycleGAN/models/networks.py:19
↓ 2 callersFunctionhelp
Lane-Detection/tools/lane_evaluation/src/evaluate.cpp:21
↓ 2 callersFunctioninit_net
Initialize a network: 1. register CPU/GPU device (with multi-GPU support); 2. initialize the network weights Parameters: net (network)
SIM-CycleGAN/models/networks.py:102
↓ 2 callersMethodlab2rgb
Convert an Lab tensor image to a RGB numpy output Parameters: L (1-channel tensor array): L channel images (range: [-1, 1], torch
SIM-CycleGAN/models/colorization_model.py:48
↓ 2 callersFunctionload_resized_img
(path)
SIM-CycleGAN/datasets/prepare_cityscapes_dataset.py:17
↓ 2 callersFunctionmkdir
create a single empty directory if it didn't exist Parameters: path (str) -- a single directory path
SIM-CycleGAN/util/util.py:98
↓ 2 callersMethodparse
Parse our options, create checkpoints directory suffix, and set up gpu device.
SIM-CycleGAN/options/base_options.py:116
↓ 2 callersFunctionprocess_cityscapes
(gtFine_dir, leftImg8bit_dir, output_dir, phase)
SIM-CycleGAN/datasets/prepare_cityscapes_dataset.py:28
↓ 2 callersMethodquery
Return an image from the pool. Parameters: images: the latest generated images from the generator Returns images from th
SIM-CycleGAN/util/image_pool.py:23
↓ 2 callersFunctionread_lane_file
Lane-Detection/tools/lane_evaluation/src/evaluate.cpp:202
↓ 2 callersMethodset_input
Unpack input data from the dataloader and perform necessary pre-processing steps. Parameters: input: a dictionary that contains t
SIM-CycleGAN/models/test_model.py:52
↓ 2 callersMethodset_requires_grad
Set requies_grad=Fasle for all the networks to avoid unnecessary computations Parameters: nets (network list) -- a list of netwo
SIM-CycleGAN/models/base_model.py:217
↓ 2 callersMethodsetup
Load and print networks; create schedulers Parameters: opt (Option class) -- stores all the experiment flags; needs to be a subcl
SIM-CycleGAN/models/base_model.py:77
↓ 2 callersFunctiontest
(model, image_src)
Lane-Detection/demo.py:54
↓ 1 callersFunctionGetLane
(score, thr = 0.3)
Lane-Detection/tools/prob_to_lines.py:5
↓ 1 callersFunction__flip
(img, flip)
SIM-CycleGAN/data/base_dataset.py:132
↓ 1 callersMethod__patch_instance_norm_state_dict
Fix InstanceNorm checkpoints incompatibility (prior to 0.4)
SIM-CycleGAN/models/base_model.py:160
↓ 1 callersFunction__print_size_warning
Print warning information about image size(only print once)
SIM-CycleGAN/data/base_dataset.py:138
↓ 1 callersFunction__scale_width
(img, target_width, method=Image.BICUBIC)
SIM-CycleGAN/data/base_dataset.py:114
↓ 1 callersMethod_download_data
(self, dataset_url, save_path)
SIM-CycleGAN/util/get_data.py:56
↓ 1 callersMethod_get_options
(r)
SIM-CycleGAN/util/get_data.py:40
↓ 1 callersMethod_present_options
(self)
SIM-CycleGAN/util/get_data.py:46
↓ 1 callersMethodbackward_D_A
Calculate GAN loss for discriminator D_A
SIM-CycleGAN/models/simcycle_gan_model.py:141
↓ 1 callersMethodbackward_D_B
Calculate GAN loss for discriminator D_B
SIM-CycleGAN/models/simcycle_gan_model.py:146
↓ 1 callersMethodbackward_G
Calculate the loss for generators G_A and G_B
SIM-CycleGAN/models/simcycle_gan_model.py:151
↓ 1 callersMethodbuild_conv_block
Construct a convolutional block. Parameters: dim (int) -- the number of channels in the conv layer. padding
SIM-CycleGAN/models/networks.py:452
↓ 1 callersFunctioncheck_matching_pair
(segmap_path, photo_path)
SIM-CycleGAN/datasets/prepare_cityscapes_dataset.py:20
↓ 1 callersMethodcount_im_pair
Lane-Detection/tools/lane_evaluation/src/counter.cpp:61
↓ 1 callersMethoddisplay_current_results
Display current results on visdom; save current results to an HTML file. Parameters: visuals (OrderedDict) - - dictionary of imag
SIM-CycleGAN/util/visualizer.py:102
↓ 1 callersMethodforward
Run forward pass; called by both functions <optimize_parameters> and <test>.
SIM-CycleGAN/models/simcycle_gan_model.py:112
↓ 1 callersMethodforward
Run forward pass; called by both functions <optimize_parameters> and <test>.
SIM-CycleGAN/models/base_model.py:68
↓ 1 callersMethodforward
Run forward pass. This will be called by both functions <optimize_parameters> and <test>.
SIM-CycleGAN/models/template_model.py:83
↓ 1 callersMethodgather_options
Initialize our parser with basic options(only once). Add additional model-specific and dataset-specific options. These options are def
SIM-CycleGAN/options/base_options.py:63
↓ 1 callersMethodgetFN
Lane-Detection/tools/lane_evaluation/src/counter.cpp:41
↓ 1 callersMethodgetFP
Lane-Detection/tools/lane_evaluation/src/counter.cpp:36
↓ 1 callersMethodgetTP
Lane-Detection/tools/lane_evaluation/src/counter.cpp:31
↓ 1 callersMethodget_current_losses
Return traning losses / errors. train.py will print out these errors on console, and save them to a file
SIM-CycleGAN/models/base_model.py:134
↓ 1 callersMethodget_image_dir
Return the directory that stores images
SIM-CycleGAN/util/html.py:35
↓ 1 callersMethodget_image_paths
Return image paths that are used to load current data
SIM-CycleGAN/models/base_model.py:111
↓ 1 callersMethodget_lane_similarity
Lane-Detection/tools/lane_evaluation/src/lane_compare.cpp:10
↓ 1 callersMethodget_optim_policies
(self)
Lane-Detection/models/erfnet.py:199
↓ 1 callersMethodget_precision
Lane-Detection/tools/lane_evaluation/src/counter.cpp:10
↓ 1 callersMethodget_recall
Lane-Detection/tools/lane_evaluation/src/counter.cpp:21
↓ 1 callersMethodget_target_tensor
Create label tensors with the same size as the input. Parameters: prediction (tensor) - - tpyically the prediction from a discrim
SIM-CycleGAN/models/networks.py:299
↓ 1 callersFunctioninit_weights
Initialize network weights. Parameters: net (network) -- network to be initialized init_type (str) -- the name of an initializa
SIM-CycleGAN/models/networks.py:68
↓ 1 callersMethodinitialize
Define the common options that are used in both training and test.
SIM-CycleGAN/options/base_options.py:20
↓ 1 callersFunctionis_image_file
(filename)
SIM-CycleGAN/data/image_folder.py:20
↓ 1 callersMethodload_data
(self)
SIM-CycleGAN/data/__init__.py:81
↓ 1 callersMethodload_networks
Load all the networks from the disk. Parameters: epoch (int) -- current epoch; used in the file name '%s_net_%s.pth' % (epoch, na
SIM-CycleGAN/models/base_model.py:174
↓ 1 callersFunctionmain
()
Lane-Detection/test_erfnet.py:21
↓ 1 callersFunctionmain
()
Lane-Detection/demo.py:18
↓ 1 callersMethodmatch
Lane-Detection/tools/lane_evaluation/include/hungarianGraph.hpp:38
↓ 1 callersMethodoptimize_parameters
No optimization for test model.
SIM-CycleGAN/models/test_model.py:67
↓ 1 callersMethodplot_current_losses
display the current losses on visdom display: dictionary of error labels and values Parameters: epoch (int) -- current
SIM-CycleGAN/util/visualizer.py:183
↓ 1 callersMethodprint_current_losses
print current losses on console; also save the losses to the disk Parameters: epoch (int) -- current epoch iters (int
SIM-CycleGAN/util/visualizer.py:209
↓ 1 callersMethodprint_networks
Print the total number of parameters in the network and (if verbose) network architecture Parameters: verbose (bool) -- if verbos
SIM-CycleGAN/models/base_model.py:199
↓ 1 callersMethodprint_options
Print and save options It will print both current options and default values(if different). It will save options into a text file / [
SIM-CycleGAN/options/base_options.py:91
↓ 1 callersMethodreset
(self)
Lane-Detection/test_erfnet.py:147
↓ 1 callersMethodreset
Reset the self.saved status
SIM-CycleGAN/util/visualizer.py:91
↓ 1 callersFunctionsave_images
Save images to the disk. Parameters: webpage (the HTML class) -- the HTML webpage class that stores these imaegs (see html.py for more de
SIM-CycleGAN/util/visualizer.py:16
↓ 1 callersMethodsetFN
Lane-Detection/tools/lane_evaluation/src/counter.cpp:56
↓ 1 callersMethodsetFP
Lane-Detection/tools/lane_evaluation/src/counter.cpp:51
↓ 1 callersMethodsetTP
Lane-Detection/tools/lane_evaluation/src/counter.cpp:46
↓ 1 callersMethodtest
Forward function used in test time. This function wraps <forward> function in no_grad() so we don't save intermediate steps for backprop
SIM-CycleGAN/models/base_model.py:97
↓ 1 callersMethodupdate
(self, val, n=1)
Lane-Detection/test_erfnet.py:153
↓ 1 callersMethodupdate_learning_rate
Update learning rates for all the networks; called at the end of every epoch
SIM-CycleGAN/models/base_model.py:115
↓ 1 callersFunctionvalidate
(val_loader, model, criterion, iter, evaluator, logger=None)
Lane-Detection/test_erfnet.py:89
↓ 1 callersFunctionvisualize
Lane-Detection/tools/lane_evaluation/src/evaluate.cpp:228
FunctionAddMask
(img, mask, color, threshold = 0.3)
Lane-Detection/tools/prob_to_lines.py:46
MethodCounter
Lane-Detection/tools/lane_evaluation/include/counter.hpp:19
FunctionGetLines
(existArray, scoreMaps, thr = 0.3)
Lane-Detection/tools/prob_to_lines.py:23
next →1–100 of 228, ranked by callers