This file contains hidden or 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
import os | |
import glob | |
import subprocess as sp | |
import itertools | |
import sys | |
""" |
This file contains hidden or 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
import numpy | |
import argparse | |
import os | |
import json | |
from tqdm import tqdm | |
import cv2 | |
def main(args): | |
if not os.path.exists(args.input_dir_a[0]): | |
raise Exception("Folder A {} does not exist".format(args.input_dir_a[0])) |
This file contains hidden or 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 utils import get_image_paths, load_images, stack_images | |
from training_data import get_training_data | |
import random | |
import numpy | |
import cv2 | |
from keras.models import Model | |
from keras.layers import Input, Dense, Flatten, Reshape, concatenate, Add, add, Dropout |
NewerOlder