Giter Site home page Giter Site logo

yugo19 / map-action-model Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 223mapaction/map-action-model

0.0 0.0 0.0 45.73 MB

License: GNU General Public License v3.0

Jupyter Notebook 8.28% Python 91.57% Shell 0.04% PowerShell 0.10% Dockerfile 0.01%

map-action-model's Introduction

MAP-ACTION-MODEL

Map your actions with precision and value!

Developed with the software and tools below.

tqdm Jupyter YAML Jinja PowerShell Python
Docker GitHub%20Actions pandas DVC NumPy FastAPI


Quick Links


Overview

Map Action Model is the codebase for the continous training of Map Acion computer vision model. Developper Doc

Selection_080


Features

Feature Description
โš™๏ธ Architecture The project follow a modular architecture with dependencies on libraries like Brotli, Pillow, and FastAPI. It utilizes a mix of Python and related technologies for development.
๐Ÿ”ฉ Code Quality The code quality is maintained with the use of tools such as MkDocs for documentation and potentially other linting tools based on the repository contents.
๐Ÿ“„ Documentation The project includes MKDocs for documentation generation, providing extensive and structured documentation for the codebase.
๐Ÿ”Œ Integrations Key integrations include Brotli, tqdm, and FastAPI among others, suggesting a reliance on external libraries and tools for functionality.
๐Ÿงฉ Modularity The project is structured in a modular way, with dependencies on various libraries like Torch, torchvision, and others, indicating potential code reusability.
๐Ÿงช Testing Testing frameworks is PyTest
๐Ÿ“ฆ Dependencies Key external libraries and dependencies include Brotli, Pillow, FastAPI, Torch, torchvision, and others, indicating a reliance on diverse libraries for functionality.

Repository Structure

โ””โ”€โ”€ Map-Action-Model/
    โ”œโ”€โ”€ .github
    โ”‚   โ””โ”€โ”€ workflows
    โ”‚       โ”œโ”€โ”€ deploy-docs.yml
    โ”‚       โ”œโ”€โ”€ training-on-gpu.yml
    โ”‚       โ”œโ”€โ”€ unittesting.yml
    โ”‚       โ””โ”€โ”€ zenml_action.yml
    โ”œโ”€โ”€ Dockerfile._cuda
    โ”œโ”€โ”€ Dockerfile.fastapi
    โ”œโ”€โ”€ LICENCE
    โ”œโ”€โ”€ _cd.yml
    โ”œโ”€โ”€ _ci.yml
    โ”œโ”€โ”€ code
    โ”‚   โ”œโ”€โ”€ .zen
    โ”‚   โ”‚   โ””โ”€โ”€ config.yaml
    โ”‚   โ”œโ”€โ”€ TFLearning.ipynb
    โ”‚   โ”œโ”€โ”€ pipelines
    โ”‚   โ”‚   โ””โ”€โ”€ zenml_pipeline.py
    โ”‚   โ”œโ”€โ”€ steps
    โ”‚   โ”‚   โ”œโ”€โ”€ dagshub_utils
    โ”‚   โ”‚   โ”œโ”€โ”€ data_preprocess
    โ”‚   โ”‚   โ”œโ”€โ”€ model
    โ”‚   โ”‚   โ”œโ”€โ”€ model_eval
    โ”‚   โ”‚   โ”œโ”€โ”€ plot_metrics
    โ”‚   โ”‚   โ””โ”€โ”€ training_step
    โ”‚   โ”œโ”€โ”€ utilities.ipynb
    โ”‚   โ””โ”€โ”€ zenml_running.py
    โ”œโ”€โ”€ data.dvc
    โ”œโ”€โ”€ data_upload.py
    โ”œโ”€โ”€ ma_env
    โ”‚   โ”œโ”€โ”€ bin
    โ”‚   โ”‚   โ”œโ”€โ”€ Activate.ps1
    โ”‚   โ”‚   โ”œโ”€โ”€ activate
    โ”‚   โ”‚   โ”œโ”€โ”€ activate.csh
    โ”‚   โ”‚   โ”œโ”€โ”€ activate.fish
    โ”‚   โ”‚   โ”œโ”€โ”€ pip
    โ”‚   โ”‚   โ”œโ”€โ”€ pip3
    โ”‚   โ”‚   โ”œโ”€โ”€ pip3.10
    โ”‚   โ”‚   โ”œโ”€โ”€ python
    โ”‚   โ”‚   โ”œโ”€โ”€ python3
    โ”‚   โ”‚   โ””โ”€โ”€ python3.10
    โ”‚   โ”œโ”€โ”€ lib
    โ”‚   โ”‚   โ””โ”€โ”€ python3.10
    โ”‚   โ””โ”€โ”€ lib64
    โ”‚       โ””โ”€โ”€ python3.10
    โ”œโ”€โ”€ model
    โ”‚   โ””โ”€โ”€ main.py
    โ”œโ”€โ”€ requirements.txt
    โ”œโ”€โ”€ services
    โ”‚   โ””โ”€โ”€ unittesting
    โ”‚       โ””โ”€โ”€ Dockerfile
    โ””โ”€โ”€ zenml_config
        โ””โ”€โ”€ zenml_conf.yml

Modules

code
File Summary
utilities.ipynb Code snippet in code/utilities.ipynb:**Interacts with MLflow and DagsHub to manage experiment tracking within Map-Action-Model repository structure. Handles data sources and enables dataset manipulations.
TFLearning.ipynb Code snippet: Validates user input and updates database accordingly.Architecture: Microservices architecture with a separate service for database operations.Role: Ensures data integrity and security in the system.Critical features: Input validation, database interaction, seamless integration within the microservices ecosystem.
zenml_running.py zenml_running.pyinMap-Action-Modelrepo orchestrates a training pipeline using ZenML. Central to managing ML workflows, integrated withpipelines/zenml_pipeline.py`.
code..zen
File Summary
config.yaml Code in code/.zen/config.yaml sets active stack and workspace IDs for the repository. Facilitates seamless integration with ZenML for workflow management and model pipelines.
code.steps.model
File Summary
m_a_model.py Code snippet in m_a_model.py creates a modified VGG16 model for a specific class count. It adjusts the classifier and uses CrossEntropyLoss. This step enhances the model's adaptability and loss computation in the repository's ML pipeline architecture.
code.steps.plot_metrics
File Summary
plot_metrics.py Code Summary:**plot_metrics.py in Map-Action-Model repo visualizes training and test loss/accuracy curves using Matplotlib. Enhances model evaluation insights for ML pipelines.
code.steps.dagshub_utils
File Summary
dagshub_data_load.py Code snippet in dagshub_data_load.py downloads and organizes data from a CSV file and DagsHub repository for machine learning model training in the Map-Action-Model repository architecture.
code.steps.model_eval
File Summary
evaluation.py Code Summary:**This code snippet performs testing for a PyTorch model, evaluating test data and logging metrics with MLFlow. It optimizes model performance and accuracy for the parent repository's machine learning pipeline.
code.steps.training_step
File Summary
training_step.py Code snippet in training_step.py trains PyTorch model with provided data, logging metrics using MLFlow. Key features include model training loop, metric tracking, and PyTorch model saving.
code.steps.data_preprocess
File Summary
data_loading_pipeline.py Code Summary**:data_loading_pipeline.py in Map-Action-Model creates PyTorch data loaders for training and testing datasets, managing dataset loading and transformation for ML pipelines.
data_transform.py Role:** Code snippet in data_transform.py for image preprocessing in Map-Action-Model repo architecture.Achievement: Generates image transformations for training/testing using torchvision API elegantly, ensuring data consistency.
code.pipelines
File Summary
zenml_pipeline.py Code snippet in zenml_pipeline.py orchestrates a machine learning training pipeline. It manages data processing, model training, and evaluation, culminating in loss curves plotting. This integral component advances ML model development in the repository architecture.

Getting Started

Requirements

Ensure you have the following dependencies installed on your system:

  • Python: Python 3.x

Installation

  1. Clone the Map-Action-Model repository:
git clone https://github.com/223MapAction/Map-Action-Model.git
  1. Change to the project directory:
cd Map-Action-Model
  1. Install the dependencies:
pip install -r requirements.txt

Running Map-Action-Model

Use the following command to run Map-Action-Model:

python main.py

Tests

To execute tests, run:

pytest

๐Ÿค Contributing

Contributions are welcome! Here are several ways you can contribute:

See our Contribution Guidelines for details on how to contribute.


๐Ÿ“„ License

This project is protected under the GNU GPLv3 License.


Code of conduct

See our Code of Conduct for details on expected behavior in our community.


๐Ÿ‘ Acknowledgments

  • List any resources, contributors, inspiration, etc. here.

Return


map-action-model's People

Contributors

yugo19 avatar immersir avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.