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
| def defModel(): | |
| model = Sequential() | |
| #Izda.add(TimeDistributed( | |
| # Convolution2D(40,3,3,border_mode='same'), input_shape=(sequence_lengths, 1,8,10))) | |
| model.add( | |
| TimeDistributed( | |
| Conv2D(32, (7, 7), padding='same', strides = 2), | |
| input_shape=(None, 540, 960, 2))) | |
| model.add(Activation('relu')) |
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
| def summary(input_size, model): | |
| def register_hook(module): | |
| def hook(module, input, output): | |
| class_name = str(module.__class__).split('.')[-1].split("'")[0] | |
| module_idx = len(summary) | |
| m_key = '%s-%i' % (class_name, module_idx+1) | |
| summary[m_key] = OrderedDict() | |
| summary[m_key]['input_shape'] = list(input[0].size()) | |
| summary[m_key]['input_shape'][0] = -1 |
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
| .frontbg { | |
| background-color: #53cd80; | |
| border-radius: 7px; | |
| color: #fff; | |
| position: relative; | |
| left: 0; | |
| } | |
| .android .frontbg { | |
| background-color: #eelf34; | |
| border-radius: 7px; |
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 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 as np | |
| import os | |
| import tensorflow as tf | |
| #import urllib2 | |
| #from datasets import imagenet | |
| #from nets import inception | |
| #from preprocessing import inception_preprocessing | |
| from PIL import Image, ImageDraw, ImageFont |
NewerOlder