New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vott2yolo

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vott2yolo

VoTT (JSON) to YOLO label converter

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by66.67%
Maintainers
1
Weekly downloads
 
Created
Source

VoTT to YOLO file converter

Convert VoTT JSON exports to YOLO file format.

  • More about VoTT: https://github.com/microsoft/VoTT
  • More about Darknet CNN / YOLO: https://github.com/ultralytics/yolov5

Install

npm i vott2yolo -g

Command line usage

Convert one file

vott2yolo /path/to/labeled-file.json /path/to/project.vott

Convert multiple files

vott2yolo /path/to/labeled-files/**/*.json /path/to/project.vott

Node.js usage

const { EOL } = require('os');
const fs = require('fs');
const vott2yolo = require('vott2yolo');

// load VoTT file as an object
const vott = JSON.parse(fs.readFileSync('/my/local/path/vott.json', 'utf8'));
// init tag list
const tags = ['tag1', 'tag2', 'tag3'];
// generate YOLO entries and concat them to a single string
const yolo = vott2yolo(vott, tags).join(EOF);
// write YOLO entries to file
fs.writeFileSync('/another/local/path/yolo.txt', yolo, 'utf8');

Keywords

FAQs

Package last updated on 31 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc