Skip to content

paulgavrikov/tinytorchtrainer

Repository files navigation

tinytorchtrainer

pytest CC BY-SA 4.0

Successor of pytorch-pretrained-cnns minus pytorch lightning

Scripts:

  • train.py: Training with various parameters
  • eval.py: Runs evaluation of a given checkpoint with validation dataset
  • eval_adv_rob.py: Runs evaluation of a given checkpoint with validation dataset under adversarial attacks of AutoAttack
  • plot_convolutions.py: Plots the 3x3 conv filters of a given checkpoint
  • plot_feature_maps.py: Plots the feature maps of selected layers of a given checkpoints for a given input sample
  • init_data.py: Prepares the data independent of training (usefull before sweeps)
  • ckpt_info.py: Dumps info stored in a checkpoint
  • to_onnx.py: Exports checkpoints to ONNX

Credits

Code partially taken from https://github.com/huyvnphan/PyTorch_CIFAR10, https://github.com/1M50RRY/resnet18-preact, https://github.com/pytorch/vision/, https://github.com/andreasveit/densenet-pytorch/.

Releases

No releases published

Packages

No packages published

Languages