Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Chenzhaowei13/Light-Condition-Style-Transfer
/ functions
Functions
228 in github.com/Chenzhaowei13/Light-Condition-Style-Transfer
⨍
Functions
228
◇
Types & classes
55
↓ 16 callers
Method
resize
Lane-Detection/tools/lane_evaluation/include/hungarianGraph.hpp:26
↓ 10 callers
Function
norm_layer
(x)
SIM-CycleGAN/models/networks.py:33
↓ 10 callers
Method
save
save the current content to the HMTL file
SIM-CycleGAN/util/html.py:68
↓ 6 callers
Method
__init__
(self, num_classes, encoder=None)
Lane-Detection/models/erfnet.py:180
↓ 6 callers
Method
__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 callers
Method
create_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 callers
Function
get_file_paths
(folder)
SIM-CycleGAN/datasets/make_dataset_aligned.py:6
↓ 4 callers
Method
splineInterpTimes
Lane-Detection/tools/lane_evaluation/src/spline.cpp:7
↓ 3 callers
Method
add_header
Insert a header to the HTML file Parameters: text (str) -- the header text
SIM-CycleGAN/util/html.py:39
↓ 3 callers
Method
add_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 callers
Method
backward
Calculate losses, gradients, and update network weights; called in every training iteration
SIM-CycleGAN/models/template_model.py:87
↓ 3 callers
Method
get
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 callers
Function
get_transform
(opt, params=None, grayscale=False, method=Image.BICUBIC, convert=True)
SIM-CycleGAN/data/base_dataset.py:81
↓ 3 callers
Function
make_dataset
(dir, max_dataset_size=float("inf"))
SIM-CycleGAN/data/image_folder.py:24
↓ 3 callers
Method
save_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 callers
Function
SIM_Conv
(n, f=3, s=2, p=1)
SIM-CycleGAN/models/networks.py:207
↓ 2 callers
Function
SIM_Deconv
(n, f=3, s=2, p=1)
SIM-CycleGAN/models/networks.py:211
↓ 2 callers
Function
SIM_Moudle
Parameters: width (int) : -- the width of input images height (int) : -- the height of input images n
SIM-CycleGAN/models/networks.py:215
↓ 2 callers
Method
_print
(self, text)
SIM-CycleGAN/util/get_data.py:35
↓ 2 callers
Function
align_images
(a_file_paths, b_file_paths, target_path)
SIM-CycleGAN/datasets/make_dataset_aligned.py:20
↓ 2 callers
Method
backward_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 callers
Method
cal_fun
Lane-Detection/tools/lane_evaluation/src/spline.cpp:103
↓ 2 callers
Method
compute_visuals
Calculate additional output images for visdom and HTML visualization
SIM-CycleGAN/models/base_model.py:107
↓ 2 callers
Function
create_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 callers
Function
create_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 callers
Method
eval
Make models eval mode during test time
SIM-CycleGAN/models/base_model.py:90
↓ 2 callers
Function
find_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 callers
Function
find_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 callers
Method
get_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 callers
Function
get_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 callers
Function
help
Lane-Detection/tools/lane_evaluation/src/evaluate.cpp:21
↓ 2 callers
Function
init_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 callers
Method
lab2rgb
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 callers
Function
load_resized_img
(path)
SIM-CycleGAN/datasets/prepare_cityscapes_dataset.py:17
↓ 2 callers
Function
mkdir
create a single empty directory if it didn't exist Parameters: path (str) -- a single directory path
SIM-CycleGAN/util/util.py:98
↓ 2 callers
Method
parse
Parse our options, create checkpoints directory suffix, and set up gpu device.
SIM-CycleGAN/options/base_options.py:116
↓ 2 callers
Function
process_cityscapes
(gtFine_dir, leftImg8bit_dir, output_dir, phase)
SIM-CycleGAN/datasets/prepare_cityscapes_dataset.py:28
↓ 2 callers
Method
query
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 callers
Function
read_lane_file
Lane-Detection/tools/lane_evaluation/src/evaluate.cpp:202
↓ 2 callers
Method
set_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 callers
Method
set_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 callers
Method
setup
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 callers
Function
test
(model, image_src)
Lane-Detection/demo.py:54
↓ 1 callers
Function
GetLane
(score, thr = 0.3)
Lane-Detection/tools/prob_to_lines.py:5
↓ 1 callers
Function
__flip
(img, flip)
SIM-CycleGAN/data/base_dataset.py:132
↓ 1 callers
Method
__patch_instance_norm_state_dict
Fix InstanceNorm checkpoints incompatibility (prior to 0.4)
SIM-CycleGAN/models/base_model.py:160
↓ 1 callers
Function
__print_size_warning
Print warning information about image size(only print once)
SIM-CycleGAN/data/base_dataset.py:138
↓ 1 callers
Function
__scale_width
(img, target_width, method=Image.BICUBIC)
SIM-CycleGAN/data/base_dataset.py:114
↓ 1 callers
Method
_download_data
(self, dataset_url, save_path)
SIM-CycleGAN/util/get_data.py:56
↓ 1 callers
Method
_get_options
(r)
SIM-CycleGAN/util/get_data.py:40
↓ 1 callers
Method
_present_options
(self)
SIM-CycleGAN/util/get_data.py:46
↓ 1 callers
Method
backward_D_A
Calculate GAN loss for discriminator D_A
SIM-CycleGAN/models/simcycle_gan_model.py:141
↓ 1 callers
Method
backward_D_B
Calculate GAN loss for discriminator D_B
SIM-CycleGAN/models/simcycle_gan_model.py:146
↓ 1 callers
Method
backward_G
Calculate the loss for generators G_A and G_B
SIM-CycleGAN/models/simcycle_gan_model.py:151
↓ 1 callers
Method
build_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 callers
Function
check_matching_pair
(segmap_path, photo_path)
SIM-CycleGAN/datasets/prepare_cityscapes_dataset.py:20
↓ 1 callers
Method
count_im_pair
Lane-Detection/tools/lane_evaluation/src/counter.cpp:61
↓ 1 callers
Method
display_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 callers
Method
forward
Run forward pass; called by both functions <optimize_parameters> and <test>.
SIM-CycleGAN/models/simcycle_gan_model.py:112
↓ 1 callers
Method
forward
Run forward pass; called by both functions <optimize_parameters> and <test>.
SIM-CycleGAN/models/base_model.py:68
↓ 1 callers
Method
forward
Run forward pass. This will be called by both functions <optimize_parameters> and <test>.
SIM-CycleGAN/models/template_model.py:83
↓ 1 callers
Method
gather_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 callers
Method
getFN
Lane-Detection/tools/lane_evaluation/src/counter.cpp:41
↓ 1 callers
Method
getFP
Lane-Detection/tools/lane_evaluation/src/counter.cpp:36
↓ 1 callers
Method
getTP
Lane-Detection/tools/lane_evaluation/src/counter.cpp:31
↓ 1 callers
Method
get_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 callers
Method
get_image_dir
Return the directory that stores images
SIM-CycleGAN/util/html.py:35
↓ 1 callers
Method
get_image_paths
Return image paths that are used to load current data
SIM-CycleGAN/models/base_model.py:111
↓ 1 callers
Method
get_lane_similarity
Lane-Detection/tools/lane_evaluation/src/lane_compare.cpp:10
↓ 1 callers
Method
get_optim_policies
(self)
Lane-Detection/models/erfnet.py:199
↓ 1 callers
Method
get_precision
Lane-Detection/tools/lane_evaluation/src/counter.cpp:10
↓ 1 callers
Method
get_recall
Lane-Detection/tools/lane_evaluation/src/counter.cpp:21
↓ 1 callers
Method
get_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 callers
Function
init_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 callers
Method
initialize
Define the common options that are used in both training and test.
SIM-CycleGAN/options/base_options.py:20
↓ 1 callers
Function
is_image_file
(filename)
SIM-CycleGAN/data/image_folder.py:20
↓ 1 callers
Method
load_data
(self)
SIM-CycleGAN/data/__init__.py:81
↓ 1 callers
Method
load_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 callers
Function
main
()
Lane-Detection/test_erfnet.py:21
↓ 1 callers
Function
main
()
Lane-Detection/demo.py:18
↓ 1 callers
Method
match
Lane-Detection/tools/lane_evaluation/include/hungarianGraph.hpp:38
↓ 1 callers
Method
optimize_parameters
No optimization for test model.
SIM-CycleGAN/models/test_model.py:67
↓ 1 callers
Method
plot_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 callers
Method
print_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 callers
Method
print_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 callers
Method
print_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 callers
Method
reset
(self)
Lane-Detection/test_erfnet.py:147
↓ 1 callers
Method
reset
Reset the self.saved status
SIM-CycleGAN/util/visualizer.py:91
↓ 1 callers
Function
save_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 callers
Method
setFN
Lane-Detection/tools/lane_evaluation/src/counter.cpp:56
↓ 1 callers
Method
setFP
Lane-Detection/tools/lane_evaluation/src/counter.cpp:51
↓ 1 callers
Method
setTP
Lane-Detection/tools/lane_evaluation/src/counter.cpp:46
↓ 1 callers
Method
test
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 callers
Method
update
(self, val, n=1)
Lane-Detection/test_erfnet.py:153
↓ 1 callers
Method
update_learning_rate
Update learning rates for all the networks; called at the end of every epoch
SIM-CycleGAN/models/base_model.py:115
↓ 1 callers
Function
validate
(val_loader, model, criterion, iter, evaluator, logger=None)
Lane-Detection/test_erfnet.py:89
↓ 1 callers
Function
visualize
Lane-Detection/tools/lane_evaluation/src/evaluate.cpp:228
Function
AddMask
(img, mask, color, threshold = 0.3)
Lane-Detection/tools/prob_to_lines.py:46
Method
Counter
Lane-Detection/tools/lane_evaluation/include/counter.hpp:19
Function
GetLines
(existArray, scoreMaps, thr = 0.3)
Lane-Detection/tools/prob_to_lines.py:23
next →
1–100 of 228, ranked by callers