Skip to content

Instantly share code, notes, and snippets.

@imksuma
imksuma / export_model.py
Created November 7, 2018 08:35
inception export
#!/usr/bin/env python
#
# Copyright 2016 The Open Images Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@imksuma
imksuma / augmentation.py
Created September 5, 2018 10:17
augmentation part timer
import cv2
import random
import os
output = open('img-logo-list.txt','w')
count = 0
for i in os.listdir('no-logo/'):
count += 1
background = cv2.imread('no-logo/' + i)
srand = random.randint(830329,830353)