#171171st of 206 in ML frameworks and libraries

morph-net

TensorFlow library that learns smaller CNN layer widths under FLOP or size limits

Stars
1k
License
Apache-2.0
Last commit
Nov 2026
Language
Python
Stars, last 29 weeks+10
21 Apr 2026: 1,033 stars28 Apr 2026: 1,033 stars5 May 2026: 1,033 stars12 May 2026: 1,033 stars19 May 2026: 1,033 stars26 May 2026: 1,034 stars2 Jun 2026: 1,035 stars9 Jun 2026: 1,035 stars16 Jun 2026: 1,036 stars23 Jun 2026: 1,036 stars30 Jun 2026: 1,036 stars7 Jul 2026: 1,037 stars14 Jul 2026: 1,037 stars21 Jul 2026: 1,037 stars28 Jul 2026: 1,037 stars4 Aug 2026: 1,037 stars11 Aug 2026: 1,037 stars18 Aug 2026: 1,038 stars25 Aug 2026: 1,038 stars1 Sept 2026: 1,038 stars8 Sept 2026: 1,038 stars15 Sept 2026: 1,039 stars22 Sept 2026: 1,039 stars29 Sept 2026: 1,039 stars6 Oct 2026: 1,041 stars13 Oct 2026: 1,042 stars20 Oct 2026: 1,042 stars27 Oct 2026: 1,042 stars3 Nov 2026: 1,043 stars10 Nov 2026: 1,043 stars

1,033 on 21 Apr 20261,043 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

MorphNet adds a resource regularizer (FLOPs, model size or device-specific latency) to the training loss of a TensorFlow convolutional network. Channels whose influence falls below an alive threshold are marked for removal, and a StructureExporter writes the proposed per-layer channel counts as JSON. You then rebuild the model with those widths and retrain from scratch. The recommended LogisticSigmoid (FiGS) regularizer requires inserting gating ops after prunable layers.

Who it is for: ML engineers shrinking TensorFlow CNNs to meet FLOP, size or latency budgets

Strengths

  • Targets specific costs: FLOPs, model size or hardware-based latency estimates
  • Keeps layer count and connectivity; only output channel counts change
  • Gamma and GroupLasso regularizers work without modifying the model, though GroupLasso is deprecated
  • Exports learned structure as JSON for retraining without the regularizer

Weaknesses

  • Examples use TF1 graph APIs (tf.Session, tf.layers); the Keras example is a TODO
  • Two-stage workflow: structure learning, then manual rebuild and full retrain
  • Recommended regularizer requires adding gating ops to the model
  • No tagged release, and the README only covers convolutional image classification

What it needs

  • Needs TensorFlow
  • Models: convolutional neural networks (TensorFlow)

Also in ML frameworks and libraries

See all 206
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks168.9k stars+1,573 (+0.9%) in 30 daysApache-2.094 out of 100
2ultralyticsPython library and CLI for training and running YOLO vision models63.3k stars+1,004 (+1.6%) in 30 daysAGPL-3.094 out of 100
3pytorchPython tensor library with GPU support and tape-based autograd105.5k stars+1,036 (+1.0%) in 30 dayscustom license93 out of 100
#4pytorch-image-modelsPyTorch library of image models, pretrained weights and training scripts37.3k stars+107 (+0.3%) in 30 daysApache-2.093 out of 100
#5supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.6k stars+521 (+1.0%) in 30 daysMIT92 out of 100