One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
from skimage.transform import rotate | |
from skimage.transform import warp | |
from skimage.transform import ProjectiveTransform | |
def rotate(Xb, intensity, batch_size): | |
""" | |
Random Rotation to Image | |
""" | |
for i in Xb.shape[0]: |
# -*- coding: utf-8 -*- | |
import time | |
import numpy as np | |
from random import randint | |
iou_vals = [] | |
iou_count = 0 | |
class Test: |
# from https://cloud.google.com/solutions/machine-learning-with-financial-time-series-data | |
def tf_confusion_metrics(model, actual_classes, session, feed_dict): | |
predictions = tf.argmax(model, 1) | |
actuals = tf.argmax(actual_classes, 1) | |
ones_like_actuals = tf.ones_like(actuals) | |
zeros_like_actuals = tf.zeros_like(actuals) | |
ones_like_predictions = tf.ones_like(predictions) | |
zeros_like_predictions = tf.zeros_like(predictions) |
ffmpeg -i shame-run.mov -r 24/1 test/output%03d.jpg |
# Download installers | |
mkdir ~/Downloads/nvidia | |
cd ~/Downloads/nvidia | |
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run | |
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/384.59/NVIDIA-Linux-x86_64-384.59.run | |
sudo chmod +x NVIDIA-Linux-x86_64-384.59.run | |
sudo chmod +x cuda_8.0.61_375.26_linux-run | |
./cuda_8.0.61_375.26_linux-run -extract=~/Downloads/nvidia/ | |
# Uninstall old stuff | |
sudo apt-get --purge remove nvidia-* |
047d20b52defb3c86ecf1ddf2e84ae8847d18abfde3e3542b4a0a1f11b6f12614778fe3399a95e951ac367c6a9daf56a1cd93880504d47c487a50e1a0f2623c936 |
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
This script reads PascalVOC xml files, and crops the class instances into seperate image files.
Note: This script relies on ImageMagick for the crop (convert) functionality. It comes pre-installed on most recent versions of Ubuntu.
Disclaimer: This code is a modified version of Dat Tran's xml_to_csv.py
Let's say we have this image in our train folder:
After a few hours of searching, I've finally found a convenient way to download a large amount of files in a bulk/multi-threaded/parallel manner, while still having the ability to specify the saved files' names.
Many thanks to Diego Torres Milano
bird_4345_543.jpg https://example.com/pictures/5351/image.jpg
bird_4345_544.jpg https://example.com/5352/pictures/image.jpg