MCPcopy Create free account

hub / github.com/AI4Forest/Global-Canopy-Height-Map / functions

Functions61 in github.com/AI4Forest/Global-Canopy-Height-Map

↓ 5 callersMethodlog
Logs the current training status. :param phase_runtime: The wall-clock time of the current phase. :type phase_runtime: float
training/runner.py:466
↓ 3 callersMethodget_dataset_root
Copies the dataset and returns the rootpath.
training/runner.py:146
↓ 2 callersMethodeval
Evaluates the model on the given data set. :param data: string indicating the data set to evaluate on. Can be 'train' or 'val'.
training/runner.py:530
↓ 2 callersMethodget_loss
(self, loss_name: str, threshold: float = None)
training/runner.py:361
↓ 2 callersMethodget_visualization
(self, viz_name: str, inputs, labels, outputs)
training/runner.py:393
↓ 2 callersMethodreset_averaged_metrics
Resets all metrics
training/runner.py:114
↓ 2 callersMethodstep
(self)
training/utilities.py:50
↓ 1 callersFunctioncompute_mean_std
(dataset, split)
scripts/compute_dataset_statistics.py:13
↓ 1 callersFunctioncompute_percentiles
(dataset_name, split, percentiles, num_workers_default=4)
scripts/compute_dataset_percentiles.py:20
↓ 1 callersMethoddefine_optimizer_scheduler
(self)
training/runner.py:485
↓ 1 callersMethodeval_fixval
Creates the fixval plots and logs them to wandb.
training/runner.py:559
↓ 1 callersMethodfill_dict_with_none
(d)
training/utilities.py:11
↓ 1 callersMethodget_dataloaders
(self)
training/runner.py:201
↓ 1 callersMethodget_metrics
Returns the metrics for the current epoch. :return: dict containing the metrics :rtype: dict
training/runner.py:120
↓ 1 callersMethodget_model
Returns the model. :param reinit: If True, the model is reinitialized. :type reinit: bool :param model_path: Path to
training/runner.py:287
↓ 1 callersMethodget_optimizer
Returns the optimizer. :param initial_lr: The initial learning rate :type initial_lr: float :return: The optimizer.
training/runner.py:418
↓ 1 callersMethodget_parameter_count
(model: torch.nn.Module)
training/metrics.py:8
↓ 1 callersMethodgetitem_classic
(self, index)
training/config.py:146
↓ 1 callersMethodgetitem_memmap
(self, index)
training/config.py:122
↓ 1 callersMethodloss_function
(shifted_labels, predictions)
training/losses/shift_l1_loss.py:13
↓ 1 callersMethodrun
Controls the execution of the script.
training/runner.py:685
↓ 1 callersMethodsave_model
Saves the model's state_dict to a file. :param model_identifier: Name of the file type. :type model_identifier: str :
training/runner.py:441
↓ 1 callersMethodset_seed
Sets the seed for the current run. :param seed: seed to be used
training/runner.py:103
↓ 1 callersFunctiontempdir
()
training/main.py:78
↓ 1 callersMethodtrain
(self)
training/runner.py:588
↓ 1 callersMethodupdate_config_with_default
Update config with default values recursively.
training/utilities.py:20
↓ 1 callersFunctionupdate_extremes
Update the list of extreme values (either largest or smallest) based on the new batch.
scripts/compute_dataset_percentiles.py:12
Method__call__
(self, image, label)
training/utilities.py:34
Method__getitem__
(self, index)
training/config.py:47
Method__getitem__
(self, index)
training/config.py:114
Method__init__
(self, data_path, dataframe, image_transforms=None)
training/config.py:38
Method__init__
(self, data_path, dataframe=None, image_transforms=None, label_transforms=None, joint_transforms=None, use_wei
training/config.py:65
Method__init__
(self)
training/utilities.py:31
Method__init__
(self, **kwargs)
training/utilities.py:46
Method__init__
Initialize useful variables using config. :param config: wandb run config :type config: wandb.config.Config :param de
training/runner.py:32
Method__init__
(self, ignore_value=None, min_measurements=5, radius=1)
training/losses/shift_l1_loss.py:10
Method__init__
Constructor for the L1 loss function with shifted GEDI labels up to 10 meters in each direction. :param ignore_value: The value to ig
training/losses/shift_loss.py:11
Method__init__
( self, ignore_value=None, pre_calculation_function=None, lower_threshold=None
training/losses/l1_loss.py:8
Method__init__
( self, ignore_value=None, pre_calculation_function=None, delta=1.0, )
training/losses/huber_loss.py:9
Method__init__
(self, ignore_value=None, min_measurements=5, radius=1)
training/losses/shift_l2_loss.py:10
Method__init__
(self, ignore_value=None, min_measurements=5, radius=1, delta=3)
training/losses/shift_huber_loss.py:10
Method__init__
( self, ignore_value=None, pre_calculation_function=None, )
training/losses/l2_loss.py:8
Method__len__
(self)
training/config.py:44
Method__len__
(self)
training/config.py:111
Functiondensity_scatter_visualization
( inputs, labels, outputs, bins=30, height_range=range(1, max_value), **kwargs )
training/visualization.py:22
Methodforward
(self, predictions, labels)
training/losses/shift_l1_loss.py:18
Methodforward
Forward pass of the loss function. :param predictions: The predictions of the network. :param labels: The labels of the data.
training/losses/shift_loss.py:44
Methodforward
Applies the L1 loss :param out: output of the network :param target: target :return: l1 loss
training/losses/l1_loss.py:19
Methodforward
Applies the Huber loss :param out: output of the network :param target: target :return Huber loss
training/losses/huber_loss.py:20
Methodforward
(self, predictions, labels)
training/losses/shift_l2_loss.py:18
Methodforward
(self, predictions, labels)
training/losses/shift_huber_loss.py:32
Methodforward
Applies the L2 loss :param out: output of the network :param target: target :return L2 loss
training/losses/l2_loss.py:17
Functionget_density_scatter_plot_visualization
Creates a density scatter plot visualization for the regression model :param process_variables: A function that takes in inputs, labels, and
training/visualization.py:10
Functionget_input_output_visualization
Get a visualization function that plots the input and output of the model. :param process_variables: A function that processes the variables
training/visualization.py:83
Functionget_visualization_boxplots
Creates a boxplot visualization for the regression model :param process_variables: A function that takes in inputs, labels, and outputs and r
training/visualization.py:134
Functioninput_output_visualization
(inputs, labels, outputs)
training/visualization.py:96
Methodloss_function
(shifted_labels, predictions)
training/losses/shift_l2_loss.py:13
Methodloss_function
(shifted_labels, predictions)
training/losses/shift_huber_loss.py:13
Methodremove_sub_track_vis
(inputs, labels, outputs)
training/runner.py:404
Methodremove_sub_track_vis_wout_labels
(inputs, labels, outputs)
training/runner.py:562
Functionvisualization_boxplots
(inputs, labels, outputs)
training/visualization.py:147