![]() |
ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
|
Functions | |
| def | save_checkpoint (save_path, epoch, depthNet, optimizer, is_best, filename='checkpoint.pth') |
| model save method #### More... | |
| def | save_urgentstop (save_path, depthNet_state, filename='urgentstop.pth') |
| def | save_path_formatter (args, parser) |
| def | main () |
| def | np2Depth (input_tensor, invaild_mask) |
| def | showdepth (predict_depths, gt_depth, b_idx) |
| def | train (epoch, train_loader, HCDepthNet, optimizer, epoch_length, train_writer) |
| def | validate (epoch, val_loader, HCDepthNet, epoch_length, validating_writer) |
Variables | |
| parser | |
| metavar | |
| help | |
| type | |
| int | |
| default | |
| float | |
| dest | |
| None | |
| action | |
| bool | scaling = True |
| int | best_error = -1 |
| device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu") | |
| int | scaled_width = 480 |
| int | scaled_height = 352 |
| float | dmin = 0.5 |
| float | dmax = 32.0 |
| int | level = 64 |
| def train.main | ( | ) |
| def train.np2Depth | ( | input_tensor, | |
| invaild_mask | |||
| ) |
| def train.save_checkpoint | ( | save_path, | |
| epoch, | |||
| depthNet, | |||
| optimizer, | |||
| is_best, | |||
filename = 'checkpoint.pth' |
|||
| ) |
model save method ####
| def train.save_path_formatter | ( | args, | |
| parser | |||
| ) |
| def train.save_urgentstop | ( | save_path, | |
| depthNet_state, | |||
filename = 'urgentstop.pth' |
|||
| ) |
| def train.showdepth | ( | predict_depths, | |
| gt_depth, | |||
| b_idx | |||
| ) |
| def train.train | ( | epoch, | |
| train_loader, | |||
| HCDepthNet, | |||
| optimizer, | |||
| epoch_length, | |||
| train_writer | |||
| ) |
| def train.validate | ( | epoch, | |
| val_loader, | |||
| HCDepthNet, | |||
| epoch_length, | |||
| validating_writer | |||
| ) |
| train.action |
| int train.best_error = -1 |
| train.default |
| train.dest |
| train.device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu") |
| float train.dmax = 32.0 |
| float train.dmin = 0.5 |
| train.float |
| train.help |
| train.int |
| int train.level = 64 |
| train.metavar |
| train.None |
| train.parser |
| int train.scaled_height = 352 |
| int train.scaled_width = 480 |
| bool train.scaling = True |
| train.type |