Skip to content
Back to skills

Tensorflow Yolov4 Tflite

ASecurity

"Guides TensorFlow YOLOv3/YOLOv4 conversion, inference, training

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
developmentpythongobashapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill tensorflow-yolov4-tflite --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tensorflow Yolov4 Tflite?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tensorflow Yolov4 Tflite
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-tensorflow-yolov4-tflite/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-tensorflow-yolov4-tflite)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tensorflow-yolov4-tflite
description: "Guides TensorFlow YOLOv3/YOLOv4 conversion, inference, training
  data, evaluation, TensorRT, and Android TFLite workflows for
  hunglc007/tensorflow-yolov4-tflite."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# tensorflow-yolov4-tflite

Use this repo skill when the user needs operational guidance for the
`hunglc007/tensorflow-yolov4-tflite` project: YOLOv3/YOLOv4 and tiny variants
implemented in TensorFlow 2, Darknet `.weights` conversion to SavedModel,
TFLite or TF-TRT export, image/video detection, COCO/VOC annotation preparation,
training, mAP/FPS checks, or the bundled Android TFLite demo.

## First checks

1. Confirm the user is working with a target checkout of this repository or a
   project copied from it. The source scripts use repository-relative paths such
   as `./data/classes/coco.names`; run commands from the target checkout root or
   pass absolute paths where a flag supports them.
2. Read [references/repo-provenance.md](references/repo-provenance.md) when
   checking whether this skill matches a checkout before refreshing it.
3. Read [references/compatibility.md](references/compatibility.md) before
   installing dependencies. The upstream pins are old: TensorFlow 2.3 era,
   Python 3.8 is the safest reconstruction target, modern protobuf must often
   be pinned below 3.20, and GPU/TensorRT needs a matching CUDA 10.x-era stack.
4. Run [scripts/check_environment.py](scripts/check_environment.py) against the
   user's target checkout for a non-destructive import/config/backend probe.

Minimal environment probe after installation:

```bash
python - <<'PY'
import tensorflow as tf, cv2
from core.config import cfg
from core import utils
print("tensorflow", tf.__version__)
print("opencv", cv2.__version__)
print("class_file", cfg.YOLO.CLASSES)
print("classes", len(utils.read_class_names(cfg.YOLO.CLASSES)))
print("gpus", tf.config.experimental.list_physical_devices("GPU"))
PY
```

If this fails, go to [references/troubleshooting.md](references/troubleshooting.md)
before changing the task plan.

## Route by task

- **Convert models or export formats**: use
  [sub-skills/model-conversion/SKILL.md](sub-skills/model-conversion/SKILL.md)
  for Darknet `.weights` to TensorFlow SavedModel, TFLite float32/float16/int8,
  TF-TRT conversion, supported flags, artifact checks, and conversion failures.
- **Run detection, evaluation, or benchmarks**: use
  [sub-skills/inference-evaluation/SKILL.md](sub-skills/inference-evaluation/SKILL.md)
  for image/video inference, TFLite inference, mAP file generation, FPS tests,
  thresholds, output files, and post-processing checks.
- **Prepare data or train**: use
  [sub-skills/training-data/SKILL.md](sub-skills/training-data/SKILL.md) for
  COCO/VOC annotation formats, class/anchor config, dataset validation, training
  stages, freeze layers, checkpoints, and dataset-related errors.
- **Use the Android demo**: use
  [sub-skills/android-deployment/SKILL.md](sub-skills/android-deployment/SKILL.md)
  for TFLite asset placement, Gradle/TFLite versions, YOLOv4 classifier
  constants, GPU/NNAPI delegate choices, and Android build/run troubleshooting.

## Repo operating model

- This is a script-style repository, not an installable Python distribution.
  Future agents should install the dependencies in an isolated environment and
  add the target checkout root to `PYTHONPATH` when running scripts from another
  working directory.
- `core.config.cfg` owns the default class file, anchors, strides, train/test
  annotation paths, thresholds, image size, batch size, and epoch counts.
- The main Python entry points are `save_model.py`, `convert_tflite.py`,
  `convert_trt.py`, `detect.py`, `detectvideo.py`, `evaluate.py`,
  `benchmarks.py`, and `train.py`. The sub-skills distill their flags and safe
  command-building steps; do not assume a command is safe to run until weights,
  datasets, output paths, and backend requirements are checked.
- Full YOLOv4 weights, COCO datasets, TensorRT conversion, Android builds, and
  training are network-, data-, hardware-, or time-intensive. Treat them as
  explicit user-approved actions, not default verification steps.

## Bundled helpers

- [scripts/check_environment.py](scripts/check_environment.py): safe environment
  and target-checkout probe shared by all workflows.
- [sub-skills/model-conversion/scripts/plan_conversion.py](sub-skills/model-conversion/scripts/plan_conversion.py):
  generates conversion command plans without running TensorFlow conversion.
- [sub-skills/inference-evaluation/scripts/plan_inference.py](sub-skills/inference-evaluation/scripts/plan_inference.py):
  generates inference/evaluation/benchmark command plans and validates common
  option combinations.
- [sub-skills/training-data/scripts/validate_annotation_line.py](sub-skills/training-data/scripts/validate_annotation_line.py):
  validates converted COCO/VOC annotation-line syntax using tiny examples.
- [sub-skills/android-deployment/scripts/check_android_assets.py](sub-skills/android-deployment/scripts/check_android_assets.py):
  checks Android asset naming, labels, and model-file presence for a target app.

## Do not use this skill when

- The user is asking about a different YOLO implementation such as Darknet,
  Ultralytics, MMDetection, YOLOP, or DeepStream-Yolo and does not need this
  repository's TensorFlow/TFLite scripts.
- The task is only generic object-detection theory, annotation labeling policy,
  or Android camera app development unrelated to this repo's TFLite assets.
- The user wants Creator-mode skill production or refresh work; route that to
  the appropriate Creator workflow instead of using this operating skill.

Files in this skill

  • SKILL.md5.6 KB
  • references/compatibility.md4 KB
  • references/repo-provenance.md2.8 KB
  • references/repo-routing-metadata.json555 B
  • references/troubleshooting.md4.9 KB
  • scripts/check_environment.py4.2 KB
  • sub-skills/android-deployment/SKILL.md2.9 KB
  • sub-skills/android-deployment/references/android-app.md3.1 KB
  • sub-skills/android-deployment/references/troubleshooting.md3 KB
  • sub-skills/android-deployment/scripts/check_android_assets.py3 KB
  • sub-skills/inference-evaluation/SKILL.md3.4 KB
  • sub-skills/inference-evaluation/references/troubleshooting.md3.7 KB
  • sub-skills/inference-evaluation/references/workflows.md3.8 KB
  • sub-skills/inference-evaluation/scripts/plan_inference.py5.8 KB
  • sub-skills/model-conversion/SKILL.md3.3 KB
  • sub-skills/model-conversion/references/cli-reference.md3.6 KB
  • sub-skills/model-conversion/references/troubleshooting.md3.8 KB
  • sub-skills/model-conversion/references/workflows.md4.1 KB
  • sub-skills/model-conversion/scripts/plan_conversion.py5.9 KB
  • sub-skills/training-data/SKILL.md3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.