Agent skill · Media & Video

matlab-integrate-pytorch-vision

Creates MATLAB interfaces to Python image processing and computer vision models from GitHub repositories or pip-installable packages using MPyReq. Use when asked to interface MATLAB with a Python CV/image model (segmentation, depth estimation, object detection, image generation, super-resolution, etc.), given a GitHub repo URL for an image/vision model, or asked to create an MPyReq demo for a deep-learning vision pipeline. Do NOT use for general-purpose Python-MATLAB interfacing, non-vision models (NLP, tabular, audio), model deployment/serving, or MATLAB-only image processing workflows.

matlabgithub.com/matlabGitHub ↗
claude-codecodexcopilotNOASSERTION
Install
npx skills add matlab/matlab-agentic-toolkit --skill matlab-integrate-pytorch-vision --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 12
SKILL.md size: 15 KB
Bundled scripts: none
Version: 1.0
Declared author: MathWorks
Path: skills-catalog/image-processing-and-computer-vision/matlab-integrate-pytorch-vision/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 868
Language: MATLAB

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# MPyReq MATLAB Interface Builder Build a MATLAB interface to a Python/PyTorch model repository using the MPyReq framework. ## When to Use - User asks to interface MATLAB with a Python image processing or computer vision model (segmentation, depth estimation, object detection, image generation, super-resolution, pose estimation, optical flow, salient object detection, etc.) - User provides a GitHub repository URL for a vision/image model and wants to call it from MATLAB - User asks to "create an MPyReq wrapper" or "MPyReq demo" for an image/CV model - User wants to run a pip-installable vision model library (e.g., Cellpose, SAM2, Depth-Pro, BiRefNet, StarDist) from MATLAB ## When Not to Use - General-purpose Python-MATLAB interfacing (no vision/image model involved) - Non-vision models: NLP, audio, tabular, reinforcement learning, time-series - Model deployment, containerization, or inference servers - Pure MATLAB image processing workflows with no Python dependency - Creating Python code (this skill creates MATLAB code that calls Python) ## Prerequisites: MPyReq on the MATLAB Path Before generating any demo script, verify that MPyReq is available. Run `which MPyReq` via the MATLAB

What's inside
Steps it walks through
  1. When to Use
  2. When Not to Use
  3. Prerequisites: MPyReq on the MATLAB Path
  4. If MPyReq is NOT on the MATLAB path:
  5. Input
  6. Step 1: Analyze the Repository
  7. Step 2: Generate the MPyReq Setup Script
  8. MANDATORY: Installation folder setup
  9. Pattern A: Simple pip package (like Cellpose)
  10. Pattern B: Git repo as pip package (like SAM2)
  11. Pattern C: Git repo + requirements.txt (like VGGT, BiRefNet)
  12. Pattern D: torch.hub model (like DINOv2, ResNet, etc.)
  13. Weights download pattern
  14. Step 3: Create the MATLAB Inference Interface
Ships with 11 files
  • manifest.yaml
  • references/common_gotchas.md
  • references/demo-birefnet.md
  • references/demo-cellpose.md
  • references/demo-depthpro.md
  • references/demo-sam2.md
  • references/demo-stardist.md
  • references/demo-vggt.md
  • references/image_conversion_patterns.md
  • references/python_matlab_conversions.md
  • references/readme.md
More from matlab-agentic-toolkit
All skills →
About this skill
What does the matlab-integrate-pytorch-vision skill do?

Creates MATLAB interfaces to Python image processing and computer vision models from GitHub repositories or pip-installable packages using MPyReq. Use when asked to interface MATLAB with a Python CV/image model (segmentation, depth estimation, object detection, image generation, super-resolution, etc.), given a GitHub repo URL for an image/vision model, or asked to create an MPyReq demo for a deep-learning vision pipeline. Do NOT use for general-purpose Python-MATLAB interfacing, non-vision models (NLP, tabular, audio), model deployment/serving, or MATLAB-only image processing workflows.

How do I install it?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-integrate-pytorch-vision --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going