- Home
- Skills
- Agents & Orchestration
- Invoice Intelligence
More screenshots
Works with the AI Agents you already use
Invoice Intelligence
Build, train, and deploy PyTorch image captioning models with LSTM, Attention, and Transformer decoders.
Free
Invoice Intelligence
Example session with this skill installed
Compare the performance of the LSTM and Attention models on my current dataset and show the results.
- Read your context and instructions
- Compiled the invoice intelligence
I have executed the comparison script across your trained checkpoints for the LSTM and Attention decoders. The evaluation was performed on the test split using a beam size of 5.
Model Performance Comparison
| Metric | LSTM (Baseline) | Bahdanau Attention |
|---|---|---|
| BLEU-1 | 0.6241 | 0.6892 |
| BLEU-2 | 0.4120 | 0.4735 |
| BLEU-3 | 0.2854 | 0.3310 |
| BLEU-4 | 0.1892 | 0.2341 |
| Val Loss | 3.421 | 3.102 |
| Checkpoint | lstm_best.pt | attention_best.pt |
The Attention model shows a significant improvement in BLEU-4 (+23.7%), suggesting the 7x7 grid features are effectively capturing spatial dependencies that the global LSTM vector misses. Training curves indicate the Attention model requires approximately 15% more epochs to converge but reaches a lower validation loss floor.
Next steps
- Run
python src/visualize_attention.py <image_path>to see if the model is focusing on the correct objects. - If specific captions are still failing, use
src/feedback.pyto provide manual corrections. - Use
src/compare_models.pyto generate a full Markdown report in theoutputs/directory.
Connects securely to your tools. The creator never sees your data.
About this skill
Setting up an image captioning pipeline from scratch often results in a mess of unoptimized feature extraction, mismatched model dimensions, and brittle training scripts. This skill delivers a production-ready PyTorch codebase for building and deploying vision-language systems using ResNet50 and multiple decoder architectures.
What it does
- Multi-Decoder Support implements LSTM baselines, Bahdanau attention, and Transformer architectures for comparative performance analysis.
- Automated Feature Extraction precomputes ResNet50 global and grid features to accelerate training by 10x compared to raw image loading.
- Evaluation Suite calculates BLEU-1 through BLEU-4 metrics and generates attention heatmaps to visualize model focus.
- Feedback Loop enables online learning from user corrections with a BLEU-based guardrail to prevent catastrophic forgetting.
- Full-Stack Demo scaffolds a FastAPI backend and React frontend for real-time inference and model testing.
How it works
- Scaffold the project structure and install dependencies using the provided setup scripts.
- Prepare Data by processing raw images (like Flickr8k) and extracting features into optimized
.npyfiles. - Train and Evaluate by selecting a decoder type and running the training script with early stopping.
- Deploy via the Streamlit dashboard or the FastAPI/React stack to test captions on new images.
Frameworks & tools
PyTorch, Torchvision, FastAPI, React, Streamlit, NumPy, Matplotlib, and Pillow.
Why this beats prompting it yourself
Prompting an LLM to write a vision-language pipeline usually results in "hello world" scripts that fail at scale or lack proper evaluation metrics. This skill provides the plumbing for frozen encoders, precomputed feature grids, and gated retraining logic that would take weeks to debug manually.
Use cases
- Compare the caption accuracy of RNNs versus Transformers on custom datasets.
- Build a search engine that generates textual metadata for private image libraries.
- Create an educational workbench for studying "Show, Attend and Tell" mechanisms.
- Implement a self-improving captioning API that learns from human feedback.
Known limitations
Requires external download of the Flickr8k dataset or similar formatted data. Training on CPU is significantly slower than GPU/MPS and is only recommended for small tests.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 10 days ago
- Free with an Agensi account
- Software
Python
Permissions
What's inside
Creator
Mohamed Aymane Badia
Frequently Asked Questions
New in Agents & Orchestration
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.