Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 2.67 KB

File metadata and controls

45 lines (33 loc) · 2.67 KB

Test Scripts Description

This document provides a brief overview of the scripts located in the test directory. These scripts are primarily used for testing and demonstrating the capabilities of the DeepFlows framework, including various model architectures and datasets.

CUDA Backend Tests

  • test_cuda.py: Low-level testing script for the CUDA backend extension (CUDA_BACKEND). It verifies basic operations like array creation, memory transfer, and kernel execution (e.g., fill).

Basic Machine Learning Examples

  • LinearRegression.py: A simple linear regression example using CPU. Fits a line $y = 3x + 5$ to synthetic data.

MLP (Multi-Layer Perceptron)

CNN (Convolutional Neural Networks)

MNIST Dataset

CIFAR-10 Dataset

Animal-10 Dataset

Dishes Dataset

  • CNN_Dishes_cuda.py: CNN model trained on the Dishes dataset using CUDA. Adapted from the Animal-10 script.

Advanced Architectures

ResNet

MobileNet

  • MobileNet.py: Implementation of MobileNetV1 architecture (Depthwise Separable Convolutions).

Pretrained Models & Transfer Learning

  • test_pretrained_models.py: Tests the functionality of downloading, converting, and loading pretrained models. Demonstrates how to use the DeepFlows.utils.pretrained_models module for transfer learning.

Note: Scripts with _cuda suffix require a GPU and the DeepFlows CUDA backend to be properly built and configured.