Skip to content

Instantly share code, notes, and snippets.

View myounus96's full-sized avatar
👨‍💻
Salam 👋

Muhammad Younus myounus96

👨‍💻
Salam 👋
View GitHub Profile
@myounus96
myounus96 / install_pipenv.md
Created July 6, 2020 13:12 — forked from planetceres/install_pipenv.md
pipenv installation notes Ubuntu 18.04

Installation Notes for pipenv on Ubuntu 18.04

1. Add ~/.local/bin to PATH

pypa/pipenv#2122 (comment)

echo 'export PATH="${HOME}/.local/bin:$PATH"' >> ~/.bashrc
@myounus96
myounus96 / data-preparation.ipynb
Last active March 5, 2020 13:04
Cattle detection and counting in UAV images based on convolutional neural networks (gist for dataset preparation for yolov3)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@myounus96
myounus96 / customize_extract_person.py
Last active November 12, 2019 09:50
scripts for coco to pascal then to yolo,extract_person convert coco data to pascal,then voc_label convert that pascal data to yolo
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
@myounus96
myounus96 / clean-voc-data.ipynb
Created November 12, 2019 08:20
remove the data of extra classes for voc to yolo gist
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@myounus96
myounus96 / convert_voc_to_yolo.md
Last active February 3, 2022 22:27 — forked from vdalv/convert_voc_to_yolo.md
convert pascal voc dataset to yolo format

Convert PascalVOC Annotations to YOLO

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

Instructions:

  1. Place the convert_voc_to_yolo.py file into your data folder.