🔥 PyTorch C++ Samples 🔥

🚀 Quick Start (Details: Library, Run)
Requirements: LibTorch, OpenCV, OpenMP, Boost, Gnuplot, libpng/png++/zlib
1. Git Clone
$ git clone https://github.com/koba-jon/pytorch_cpp.git
$ cd pytorch_cpp
$ sudo apt install g++-8
2. Run
(1) Change Directory (Model: AE1d)
$ cd Dimensionality_Reduction/AE1d
(2) Build
$ mkdir build
$ cd build
$ cmake ..
$ make -j4
$ cd ..
(3) Dataset Setting (Dataset: Normal Distribution Dataset)
$ cd datasets
$ git clone https://huggingface.co/datasets/koba-jon/normal_distribution_dataset
$ ln -s normal_distribution_dataset/NormalDistribution ./NormalDistribution
$ cd ..
(4) Training
$ sh scripts/train.sh
(5) Test
$ sh scripts/test.sh
🔄 Updates (MM/DD/YYYY)
01/22/2026: Release of v2.10.0
12/22/2025: Implementation of AdaIN
12/20/2025: Implementation of NST
12/06/2025: Release of v2.9.1.4
12/01/2025: Release of v2.9.1.3
12/01/2025: Implementation of PatchCore
11/29/2025: Release of v2.9.1.2
11/29/2025: Implementation of PaDiM
11/27/2025: Implementation of WideResNet
11/27/2025: Release of v2.9.1.1
See more...
11/24/2025: Implementation of ESRGAN
11/21/2025: Implementation of SRGAN
11/19/2025: Implementation of DiT
11/14/2025: Release of v2.9.1
11/01/2025: Implementation of NeRF and 3DGS
10/16/2025: Release of v2.9.0
10/16/2025: Implementation of PixelSNAIL-Gray and PixelSNAIL-RGB
10/14/2025: Implementation of YOLOv8
10/13/2025: Implementation of YOLOv5
10/09/2025: Implementation of RF2d
10/08/2025: Implementation of FM2d
10/08/2025: Implementation of LDM
10/04/2025: Implementation of Glow
10/01/2025: Implementation of Real-NVP2d
09/28/2025: Implementation of Planar-Flow2d and Radial-Flow2d
09/25/2025: Release of v2.8.0.2
09/22/2025: Implementation of PixelCNN-Gray and PixelCNN-RGB
09/18/2025: Implementation of VQ-VAE-2
09/16/2025: Implementation of VQ-VAE
09/14/2025: Implementation of PNDM2d
09/14/2025: Release of v2.8.0.1
09/12/2025: Implementation of SimCLR
09/11/2025: Implementation of MAE
09/10/2025: Implementation of EMA for DDPM2d and DDIM2d
09/08/2025: Implementation of EfficientNet
09/07/2025: Implementation of CycleGAN
09/05/2025: Implementation of ViT
09/04/2025: Release of v2.8.0
09/04/2025: Implementation of DDIM2d
09/04/2025: Implementation of DDPM2d
06/27/2023: Release of v2.0.1
06/27/2023: Create the heatmap for Anomaly Detection
05/07/2023: Release of v2.0.0
03/01/2023: Release of v1.13.1
09/12/2022: Release of v1.12.1
08/04/2022: Release of v1.12.0
03/18/2022: Release of v1.11.0
02/10/2022: Release of v1.10.2
02/09/2022: Implementation of YOLOv3
01/09/2022: Release of v1.10.1
01/09/2022: Fixed execution error in test on CPU package
11/12/2021: Release of v1.10.0
09/27/2021: Release of v1.9.1
09/27/2021: Support for using different devices between training and test
09/06/2021: Improved accuracy of time measurement using GPU
06/19/2021: Release of v1.9.0
03/29/2021: Release of v1.8.1
03/18/2021: Implementation of Discriminator from DCGAN
03/17/2021: Implementation of AE1d
03/16/2021: Release of v1.8.0
03/15/2021: Implementation of YOLOv2
02/11/2021: Implementation of YOLOv1
01/21/2021: Release of v1.7.1
10/30/2020: Release of v1.7.0
10/04/2020: Implementation of Skip-GANomaly2d
10/03/2020: Implementation of GANomaly2d
09/29/2020: Implementation of EGBAD2d
09/28/2020: Implementation of AnoGAN2d
09/27/2020: Implementation of SegNet
09/26/2020: Implementation of DAE2d
09/13/2020: Implementation of ResNet
09/07/2020: Implementation of VGGNet
09/05/2020: Implementation of AlexNet
09/02/2020: Implementation of WAE2d GAN and WAE2d MMD
08/30/2020: Release of v1.6.0
06/26/2020: Implementation of DAGMM2d
06/26/2020: Release of v1.5.1
06/26/2020: Implementation of VAE2d and DCGAN
06/01/2020: Implementation of Pix2Pix
05/29/2020: Implementation of U-Net Classification
05/26/2020: Implementation of U-Net Regression
04/24/2020: Release of v1.5.0
03/23/2020: Implementation of AE2d
🏗️ Implementation
📊 Multiclass Classification
🔽 Dimensionality Reduction
🎨 Generative Modeling