echo 'export PATH="${HOME}/.local/bin:$PATH"' >> ~/.bashrc
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pycocotools.coco import COCO | |
import os | |
import shutil | |
from tqdm import tqdm | |
import skimage.io as io | |
import matplotlib.pyplot as plt | |
import cv2 | |
from PIL import Image, ImageDraw | |
#the path you want to save your results for coco to voc |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This script reads PascalVOC xml files, and converts them to YOLO txt files.
Note: This script was written and tested on Ubuntu. YMMV on other OS's.
Disclaimer: This code is a modified version of Joseph Redmon's voc_label.py
- Place the convert_voc_to_yolo.py file into your data folder.