More screenshots

    Works with the AI Agents you already use

    Invoice Intelligence

    by Mohamed Aymane Badia

    1

    Build, train, and deploy PyTorch image captioning models with LSTM, Attention, and Transformer decoders.

    Free

    Security scanned
    Invoice Intelligence

    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

    MetricLSTM (Baseline)Bahdanau Attention
    BLEU-10.62410.6892
    BLEU-20.41200.4735
    BLEU-30.28540.3310
    BLEU-40.18920.2341
    Val Loss3.4213.102
    Checkpointlstm_best.ptattention_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

    1. Run python src/visualize_attention.py <image_path> to see if the model is focusing on the correct objects.
    2. If specific captions are still failing, use src/feedback.py to provide manual corrections.
    3. Use src/compare_models.py to generate a full Markdown report in the outputs/ 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

    1. Scaffold the project structure and install dependencies using the provided setup scripts.
    2. Prepare Data by processing raw images (like Flickr8k) and extracting features into optimized .npy files.
    3. Train and Evaluate by selecting a decoder type and running the training script with early stopping.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Network Access
    Write Files
    Listed10 days ago

    What's inside

    Creator

    Mohamed Aymane Badia

    Mohamed Aymane Badia

    Frequently Asked Questions

    This skill provides a complete, production-ready PyTorch codebase that includes multiple decoder architectures (LSTM, Attention, Transformer), automated ResNet50 feature extraction, and a full-stack deployment suite using FastAPI and React.

    Yes, while it includes a setup for the Flickr8k dataset, the pipeline is designed to work with any custom image-caption pairs by following the provided data preparation scripts to extract features into optimized .npy files.

    The codebase is optimized for GPU/MPS acceleration to handle heavy vision-language processing; while it can run on a CPU for small tests, a dedicated GPU is highly recommended for efficient training and inference.

    This skill solves the 'brittle script' problem by providing pre-built evaluation metrics (BLEU-1 through 4), attention heatmaps for interpretability, and a feedback loop that allows the model to learn from human corrections without crashing.

    The skill provides a ready-to-use FastAPI backend and a Streamlit dashboard, making it easy to integrate the captioning engine as a microservice within larger AI agent workflows or web applications.

    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.

    Free