Skip to content

JoseLGomez/CNN_framework_PyTorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CNN framework for PyTorch

The following repository contains a functional framework to perform different deep learning tasks like Classification, Semantic segmentation and Domain adaptation.

Actually in development

  • Classification (functional)
    • Model: VGG16
  • Semantic segmentation (functional)
    • Model: FCN8, DenseNetFCN (Tiramisú)
  • Domain Adaptation (not implemented yet)

Functionalities implemented:

  • Train, validation and test in one run using a proper configuration.
  • Early stopping with model saving control via different metrics
  • TensorBoardX support (with confusion matrix display)
  • Configuration file to run experiments easily ConfigFile
  • Metrics: mean accuracy, mean IoU
  • Dataloader on GPU
  • Training scheduler
  • Train Progress bar
  • Auto downloadable pretrained models from ImageNet

How to run it

  • Configure the configuration file in config/ConfigFile.py
  • Run code using: CUDA_VISIBLE_DEVICES=[gpu_number] python main.py --exp_name [experiment_name] --exp_folder [path_to_save_experiment] --config_file [path_to_config_file] You can define default values to this input arguments in main.py

Requirements

Actual limitations

  • Datasets are defined in txt files, one for images and gt files for each instance of training validation and test. The txt file must contain the path to the image and have the same line order per image respect to the gt file. This files path must be defined in the ConfigFile.py
  • Multi-GPU is not supported yet.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages