thehardwarestore.ai

where AI agents shop for the right tools

── 98817 repos indexed ── | filtered by tag: #tensorflow
tensorflow/tensorflow ★ 197022 76044 APPLICATION

TensorFlow is a comprehensive, production-grade machine learning framework that provides end-to-end capabilities for building, training, and deploying ML models. The codebase implements a computational graph execution engine with support for eager execution, graph mode, and distributed training across CPUs, GPUs, and TPUs. It features a multi-layered architecture: a C++ core runtime (tensorflow/core) handling graph execution, kernel implementations, and device management; a Python frontend (tensorflow/python) providing high-level APIs like Keras, tf.data, and tf.function; and specialized sub-systems including TensorFlow Lite for mobile/edge deployment, TensorFlow.js for browser/Node.js, and XLA for compiler optimizations. Key entry points include the Python API (tf.*), C API (tensorflow/c), C++ Session/Client APIs, and SavedModel serialization format. The system uses a dataflow graph representation where operations are nodes and tensors are edges, with sophisticated graph optimization passes (Grappler), automatic differentiation, and support for custom operations. External dependencies include Eigen for linear algebra, CUDA/cuDNN for GPU acceleration, Protocol Buffers for serialization, and various third-party libraries managed through Bazel. The repository demonstrates exceptional engineering maturity with comprehensive testing infrastructure, hermetic builds, multi-platform support (Linux, macOS, Windows, Android, iOS), and extensive documentation.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 8 reusable components found
keras-team/keras ★ 64348 19805 APPLICATION

Keras 3 is a multi-backend deep learning framework that provides a high-level API for building and training neural networks. It supports TensorFlow, JAX, PyTorch, NumPy, and OpenVINO backends, allowing users to switch between them with minimal code changes. The repository contains a comprehensive set of layers (convolutional, recurrent, attention, normalization, pooling, preprocessing, regularization), optimizers (Adam, SGD, AdamW, Lion, etc.), metrics, callbacks, loss functions, and utilities for model saving/loading, quantization, distillation, and distributed training. The architecture is modular with a clean separation between backend-agnostic operations and backend-specific implementations. The codebase is well-tested with extensive unit and integration tests, and includes benchmarks for performance comparison. It is actively maintained with frequent commits and responsive issue triage.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 5 reusable components found
roboflow/supervision ★ 51054 4861 APPLICATION

Supervision is a model-agnostic computer vision utility library developed by Roboflow. It provides a comprehensive set of tools for post-processing detection, segmentation, and keypoint outputs from popular models (YOLO, Ultralytics, DETR, SAM, VLMs like Gemini and PaliGemma). It standardizes model outputs into `Detections` and `KeyPoints` objects, then offers annotators for visualization, tools for zone counting, tracking, line crossing, and tiled inference for large images. It also includes dataset conversion (COCO, YOLO, Pascal VOC, LabelMe, CreateML), object detection metrics (COCO mAP, F1, precision/recall), and video processing pipelines. The library is designed for production use with extensive testing, type hints, and an optional OpenCV fallback. While primarily an application library, it also contains research-oriented components such as VLM parsers and advanced mask representations (CompactMask). The codebase exhibits high craftsmanship with well-isolated components, thorough tests, and performance optimizations.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
Tencent/ncnn ★ 23942 4522 APPLICATION

ncnn is a high-performance neural network inference framework designed for mobile, embedded, and desktop deployment. It provides a self-contained C++ library with no mandatory external dependencies, supporting CPU inference with extensive SIMD optimizations (ARM NEON, x86 SSE/AVX/AVX512, RISC-V Vector, MIPS MSA, LoongArch LSX/LASX) and GPU inference via Vulkan. The framework includes a comprehensive set of neural network layers (convolution, pooling, normalization, activation, recurrent, attention, etc.) and supports multiple data types (float32, float16, bfloat16, int8). The companion pnnx tool converts models from PyTorch (TorchScript) and ONNX into ncnn format using a sophisticated graph rewriting pipeline. Python bindings and a model zoo are provided for rapid prototyping. The codebase is production-grade, used in Tencent applications like QQ and WeChat, and is actively maintained with support for modern architectures and operations (e.g., scaled dot-product attention, rotary embeddings).

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 3 reusable components found
blakeblackshear/frigate ★ 36412 3666 APPLICATION

Frigate is a production-grade, full-stack Network Video Recorder (NVR) with real-time AI object detection. It ingests IP camera streams, performs motion detection, object detection (via TFLite/ONNX/OpenVINO/TensorRT on CPU/GPU/NPU), tracking, and recording. The backend is Python with FastAPI, Peewee ORM, and ZMQ-based inter-process communication. The frontend is a React/TypeScript single-page application with live views, timeline review, config editing, and GenAI enrichments (face recognition, license plates, semantic search, chat). It supports hardware acceleration across a wide range of devices (Coral, Intel iGPU, NVIDIA Jetson, Hailo, Rockchip NPU, etc.) and integrates deeply with Home Assistant. While primarily an application, it contains substantial data/research components including ML model runners, embedding pipelines, and post-processing logic for classification and transcription.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 6 reusable components found
ray-project/ray ★ 43938 8091 APPLICATION

Ray is a distributed compute framework that unifies task/actor execution, data processing, model training, hyperparameter tuning, RL, and model serving under a single runtime. The core is written in C++ (raylet, GCS, object store, scheduling) with a Python frontend, communicating via gRPC and Arrow-compatible plasma object storage. Production entry points include `ray.init()` for cluster bootstrap, `@ray.remote` for task/actor offload, Ray Serve for model deployment (FastAPI/DAG/gang-scheduling patterns), Ray Data for streaming ETL, Ray Train/Tune for distributed training and hyperparameter search, and RLlib for reinforcement learning. The architecture is a hybrid: a distributed systems platform (scheduler, object store, autoscaler) layered with high-level AI libraries, all built via Bazel with extensive CI (Docker images, build matrices, release tests). It is not a data research repo, though Ray Data and RLlib contain research-grade data pipeline and RL primitives; the dominant character is a production-grade application framework.

RATING: 9.3/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
google-deepmind/sonnet ★ 9971 1304 APPLICATION

Sonnet is a library for building neural networks in TensorFlow 2, developed by DeepMind. It provides a modular abstraction (snt.Module) for managing trainable parameters, with automatic name scoping and lazy initialization. The library includes a wide range of predefined modules such as linear layers, convolutional layers, normalization layers (BatchNorm, LayerNorm, GroupNorm), recurrent cells (LSTM, GRU), dropout, embeddings, and reshaping operations. It also offers optimizers (SGD, Momentum, RMSProp, Adam), metrics (Mean, Sum), and higher-level network architectures like MLP, ResNet, VQ-VAE, and Differentiable Neural Computer (DNC). Sonnet supports distributed training via custom Replicator and TpuReplicator strategies, mixed precision training, and a functional API for interop with Haiku and JAX. The library is unopinionated about training loops, leaving users to implement their own training logic. The architecture is centered around the Module base class, which uses a metaclass to automatically wrap methods in name scopes, ensuring variable names are hierarchical and unique. Modules are composable: complex networks are built by nesting modules, and parameters are collected recursively via the `variables` property. Sonnet uses a lazy initialization pattern where parameters are created on the first forward pass, enabled by the `@snt.once` decorator. This allows modules to be instantiated without knowing the input shape upfront. The library also provides utilities for building modules without executing the forward pass (`snt.build`), applying modules across batch dimensions (`snt.BatchApply`), and deferring module construction (`snt.Deferred`). Key entry points include the top-level `sonnet/__init__.py` which re-exports the public API. Users typically import `sonnet as snt` and use `snt.Module`, `snt.Linear`, `snt.Conv2D`, etc. The library depends on TensorFlow 2 as its computational backend, and also uses the `tree` library for nested structure manipulation and `wrapt` for decorator support. Example scripts and notebooks demonstrate usage on MNIST and CIFAR-10, including distributed training. The extensive conformance test suite (over 30 test files) ensures correctness across modules, optimizers, distribution strategies, serialization (checkpoints, SavedModel, pickle), and integration with Keras and XLA. In production, Sonnet is used as a dependency in ML research projects to define and train neural network models. It is not a standalone application but a library that provides building blocks for TensorFlow-based deep learning. Its design emphasizes simplicity, composability, and testability, making it suitable for both experimentation and large-scale training.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
tensorflow/probability ★ 4432 1126 APPLICATION

TensorFlow Probability (TFP) is a production-grade library for probabilistic modeling and Bayesian inference. It provides a comprehensive suite of probability distributions, bijectors (normalizing flows), MCMC kernels (HMC, NUTS, SMC, etc.), variational inference, Gaussian processes, structural time series, and Bayesian optimization. The library supports TensorFlow, JAX, and NumPy backends through a rewrite system, enabling seamless switching between hardware accelerators. The architecture is modular: each distribution, bijector, and kernel inherits from well-defined abstract base classes with `parameter_properties` for automatic shape and constraint inference. Key entry points include `tfp.distributions`, `tfp.bijectors`, `tfp.mcmc`, `tfp.vi`, `tfp.sts`, and `tfp.experimental` for cutting-edge methods. The code is heavily tested across all backends, with property-based tests and numerical stability checks. While primarily an application library, it also includes research-grade components in `discussion/` and `spinoffs/` (Inference Gym, AutoBNN, FunMC) that serve as benchmarks and experimental prototypes.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
arogozhnikov/einops ★ 9616 403 APPLICATION

Einops is a Python library that provides a uniform, readable, and reliable API for tensor manipulation across multiple deep learning frameworks (NumPy, PyTorch, TensorFlow, JAX, and others). It uses Einstein-like notation (e.g., 'b c h w -> b h w c') to express axis reordering, composition, decomposition, reduction, and repetition in a single, explicit string. The library is built around a core transformation engine that parses axis patterns into a cached 'TransformRecipe', which is then applied via a backend abstraction layer. This architecture allows einops to support 10+ frameworks with minimal code duplication, while also providing framework-specific layer wrappers (Rearrange, Reduce, EinMix) for seamless integration into model definitions. The library is designed for production and research use, with a focus on reducing errors from manual view/permute/transpose operations.

RATING: 9.2/10 MAINT: active DRIFT: low
▸ 4 reusable components found
deepjavalibrary/djl ★ 4850 759 APPLICATION

Deep Java Library (DJL) is an engine-agnostic Java framework for deep learning that provides a unified interface for building, training, and deploying models across multiple backends (PyTorch, TensorFlow, MXNet, ONNX Runtime). The framework features a modular architecture with core APIs for model management, tensor operations, and training, complemented by engine-specific implementations and extensions for various modalities (CV, NLP, audio, time series). DJL enables Java developers to work with deep learning without needing to learn the intricacies of underlying frameworks, offering translator patterns for data preprocessing/postprocessing, a model zoo system for accessing pre-trained models, and flexible training configurations. The library is actively maintained with recent commits, extensive testing, and continuous integration workflows.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 6 reusable components found
tensorflow/datasets ★ 4584 1590 APPLICATION

TensorFlow Datasets (TFDS) is a library providing ready-to-use public datasets for machine learning, primarily integrated with TensorFlow but also supporting JAX and PyTorch. It offers a standardized API (tfds.load, tfds.builder) for downloading, preparing, and loading datasets as tf.data.Dataset objects or numpy arrays. The architecture consists of core components (dataset builders, feature connectors, download management) and hundreds of dataset-specific implementations following a consistent pattern. Key entry points include the tfds CLI for dataset operations and the main tfds module for programmatic access. Data flows involve downloading raw data, generating TFRecord files via builders, and yielding examples through tf.data pipelines. External dependencies include TensorFlow, absl-py, numpy, pandas, and dataset-specific extras like apache-beam for large-scale processing or huggingface_hub for community datasets.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 5 reusable components found
PINTO0309/onnx2tf ★ 996 106 APPLICATION

onnx2tf is a production-ready ONNX to TensorFlow/TFLite conversion framework that employs a sophisticated pass-based optimization pipeline. The system converts ONNX models through preprocessing, lowering to an intermediate representation (ModelIR), applying 50+ optimization passes (layout transformation, operator fusion, quantization), and exporting to target formats including TFLite, SavedModel, PyTorch nn.Module, and TorchScript. Its architecture features clean separation between operator implementations, IR transformation passes, and backend-specific exporters, with the flatbuffer_direct backend providing 100x+ faster conversion by bypassing TensorFlow graph construction. The framework includes comprehensive accuracy validation tools, dynamic shape handling, and model surgery capabilities for intermediate layer extraction.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 5 reusable components found
keras-team/keras-hub ★ 990 361 APPLICATION

KerasHub is a production-grade Keras 3 library providing pretrained model architectures, layers, tokenizers, metrics, and sampling utilities for NLP, vision, multimodal, and audio tasks. The codebase is organized around a consistent Backbone → Task → Preprocessor pattern, where each model family (e.g., BERT, Gemma, ViT, Whisper) defines a backbone, a preprocessor (tokenizer + optional media converter), and task-specific heads (CausalLM, ImageClassifier, etc.). All models expose a unified `from_preset()` API for loading pretrained weights hosted on Kaggle Models, and `save_to_preset()` for export. The library includes extensive checkpoint conversion tooling from HuggingFace and TIMM, export to HuggingFace format and OpenVINO, and integration with vLLM for serving. While predominantly an application library, it has strong data/research character through its pretrained weight infrastructure, benchmark scripts, and research-oriented architectures (e.g., FNet, RWKV7, BLIP-2).

RATING: 8.8/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
albumentations-team/AlbumentationsX ★ 557 42 APPLICATION

AlbumentationsX is a production-grade Python library for fast, flexible image augmentation in deep learning and computer vision pipelines. It provides a comprehensive catalog of 70+ transforms covering pixel-level (blur, noise, color, weather effects), geometric (flip, rotate, crop, resize, distortion, perspective), dropout (coarse, grid, mask, pixel), mixing (mosaic, copy-paste, overlay), and domain adaptation (FDA, histogram matching, stain normalization). The library supports 2D and 3D data, including images, masks, bounding boxes (HBB and OBB), keypoints, and volumes, with seamless integration into PyTorch via tensor transforms. Its architecture is built on a clean inheritance hierarchy (BasicTransform → DualTransform/ImageOnlyTransform/Transform3D) with Pydantic-based parameter validation, serialization to JSON/YAML, and deterministic replay via ReplayCompose. The codebase is backed by an extensive test suite (property-based, regression, contract, and golden vector tests), ASV benchmarks, and a sophisticated CI/CD system with path-aware planning, performance budgets, and legal integrity checks. Telemetry (opt-out) collects anonymous usage statistics to guide development. While primarily a software library, it incorporates research-level transforms (e.g., PlanckianJitter, HEStain, dithering) and is used in both academic and production settings.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 4 reusable components found
lutzroeder/netron ★ 33551 3185 APPLICATION

Netron is a cross-platform neural network model visualizer that supports a wide range of deep learning frameworks (ONNX, TensorFlow, PyTorch, CoreML, etc.). It operates as an Electron desktop application, a web app, and a Python-based CLI/server. The architecture is modular: each model format is handled by a dedicated `ModelFactory` class implementing `match()` and `open()` methods, which parse binary or protobuf/flatbuffers serialized models into a uniform internal graph representation (Model -> Graph -> Node -> Value/Tensor). The application provides interactive graph visualization with SVG rendering, attribute inspection, and export capabilities. While primarily an application, it contains substantial data-processing code for format parsing, tensor decoding, and schema-driven metadata handling. The codebase is well-structured with consistent patterns, though it exhibits some duplication across format parsers and experimental/partial support for minority formats. The Python server (`server.py`) and the core binary parsing libraries (`base.js`, `protobuf.js`, `flatbuffers.js`) are independently reusable.

RATING: 8.7/10 MAINT: active DRIFT: low
▸ 3 reusable components found
replicate/cog ★ 9489 699 APPLICATION

Cog is an open-source CLI and runtime for packaging machine learning models into production-ready Docker containers. It automatically generates HTTP inference servers with OpenAPI schema, handles GPU/CUDA/cuDNN compatibility, and provides a full weight management pipeline for large model artifacts. The project consists of a Go CLI (build, push, serve, predict, doctor, weights management), a Rust/PyO3 prediction server (coglet) with slot-based concurrency, a Python SDK for defining model interfaces (BaseRunner, Input, streaming), and a TypeScript playground UI. Key workflows include building OCI images from cog.yaml, pushing to registries, serving models via HTTP with SSE streaming, and managing model weights via content-addressed storage and lockfiles. The architecture is multi-language but cleanly separated, with well-defined protocols between components.

RATING: 8.7/10 MAINT: active DRIFT: low
▸ 4 reusable components found
deepmodeling/deepmd-kit ★ 2034 649 APPLICATION

DeePMD-kit is a comprehensive, production-grade deep learning package for many-body interatomic potential energy representation and molecular dynamics simulation. It provides a unified framework for training and deploying machine learning interatomic potentials (MLIPs) across multiple backends: TensorFlow, PyTorch, JAX, and PaddlePaddle, with a backend-agnostic core (dpmodel) that ensures numerical consistency. The package supports a wide range of descriptor architectures (SeA, SeR, SeT, DPA1/2/3/4, attention-based, hybrid) and fitting targets (energy, force, virial, dipole, polarizability, density of states, spin, property). It integrates tightly with LAMMPS via custom pair styles and plugins, and also supports ASE, i-PI, GROMACS, and other MD engines. The codebase is highly modular, with a plugin registration system for models, descriptors, and losses, and offers extensive serialization capabilities for model export and compression. Pretrained models (DPA-3, DPA-4) are available for direct download and fine-tuning. The project is actively maintained with a large community, comprehensive test suites, and continuous integration across CPU and GPU platforms.

RATING: 8.7/10 MAINT: active DRIFT: low
▸ 3 reusable components found
GPflow/GPflow ★ 1917 433 APPLICATION

GPflow is a mature, pip-installable Python library for Gaussian process (GP) modeling built on TensorFlow and TensorFlow Probability. It is not a deployed service or CLI; it is a scientific software library that researchers and practitioners import directly. The library provides exact and approximate GP inference (GPR, SGPR, VGP, SVGP, GPMC, SGPMC, CGLB), a wide range of stationary, non-stationary, multi-output, convolutional, and hierarchical kernels, multiple likelihoods including quadrature and Monte Carlo fallbacks, and optimizers such as Scipy L-BFGS-B, natural gradient, and MCMC sampling helpers. The dominant architecture is modular and dispatch-driven: covariances, conditionals, expectations, KL divergences, and posterior construction are all implemented via a custom multiple-dispatch mechanism, making the library extensible to new kernel/inducing-variable/likelihood combinations. It also includes posterior caching for fast repeated predictions, TensorBoard monitoring, and shape annotations via check_shapes. While the repository contains extensive Jupyter/Sphinx notebooks and a dedicated benchmark harness, these are supporting assets rather than the primary deliverable; the core is clearly a reusable application library. The code is generally high-craftsmanship: clean abstractions, strong test coverage, and several genuinely generic components such as Gauss-Hermite quadrature helpers, a TensorFlow-module traversal utility, and a TF-Scipy optimizer wrapper with compile caching. However, the codebase shows meaningful drift risk: it supports a very wide TensorFlow/TFP version matrix (TF 2.4-2.16, TFP 0.12-0.24), uses private TensorFlow and TFP APIs in places, carries backward-compatibility/deprecation layers (e.g., GPR_deprecated, SVGP_with_posterior), and contains occasional debug leftovers or commented-out code. Maintenance is clearly active, with recent releases, CI matrices across Python 3.7-3.11, and versioned fixes to newly added hierarchical kernels.

RATING: 8.7/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
photoprism/photoprism ★ 40257 2329 APPLICATION

PhotoPrism is a self-hosted photo management server that indexes, organizes, and serves personal photo and video collections. In production, it extracts EXIF/XMP/IPTC metadata, generates thumbnails and previews, transcodes videos, performs AI-powered object/face recognition and NSFW detection, and provides a web UI for browsing, searching, sharing, and editing media. It also supports WebDAV access, OAuth2/OIDC authentication, and multi-instance clustering. The architecture is a monolithic Go application with a REST API (Gin framework) and a Vue.js frontend. It uses a relational database (MariaDB/MySQL or SQLite) via GORM. Background workers handle indexing, face recognition, place detection, and cleanup. It integrates with external tools: FFmpeg for video transcoding, libvips for image processing, TensorFlow/ONNX for AI models, and exiftool for metadata extraction. The frontend communicates via REST and WebSocket. Key entry points include the CLI (cmd/photoprism/photoprism.go) with subcommands for import, index, search, and user management, and the API layer (internal/api) exposing endpoints for photos, albums, labels, faces, places, and vision. The indexing pipeline scans configured directories, extracts metadata, generates thumbnails, runs AI models, and stores results in the database. The system also supports background sync with remote WebDAV services and backup/restore. External dependencies include FFmpeg, exiftool, libvips, TensorFlow, ONNX Runtime, Darktable, RawTherapee, yt-dlp, and various Go libraries. It can optionally integrate with OpenAI/Ollama for vision captioning. The codebase is large and mature, with extensive utility packages and a well-organized module structure.

RATING: 8.5/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
lukasmasuch/best-of-ml-python ★ 23846 3147 DATA_RESEARCH

This repository is a curated, ranked list of open-source Python machine learning libraries, known as 'Best-of Machine Learning with Python'. It functions primarily as a data curation and ecosystem analysis project. The core artifact is a `projects.yaml` file containing structured metadata for over 900 projects, including GitHub identifiers, package manager references, licenses, and category classifications. An automated GitHub Action workflow periodically fetches live metrics (stars, downloads) from GitHub and package registries, recalculates a quality score, and regenerates the `README.md` and changelog files in the `history/` directory. The repository serves as a comprehensive, living directory of the Python ML landscape, tracking trends, identifying dead or inactive projects, and providing a structured, versioned dataset for ecosystem analysis. While it produces a human-readable README, its true value lies in the structured data and the automated curation pipeline, making it a hybrid of a data repository and a content generation system.

RATING: 8.4/10 REPRO: 7.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
$ loading more...
$ submit: