This file contains 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 __future__ import absolute_import | |
from __future__ import division | |
import os | |
import numpy as np | |
import mxnet as mx | |
from gluoncv.data.mscoco.utils import try_import_pycocotools | |
from gluoncv.data.base import VisionDataset | |
from gluoncv.utils.bbox import bbox_clip_xyxy, bbox_xywh_to_xyxy |
This file contains 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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Aug 4 01:01:37 2019 | |
keras ocr model | |
@author: chineseocr | |
""" | |
from keras.layers import (Conv2D, BatchNormalization, MaxPool2D, Input, Permute, Reshape, Dense, LeakyReLU, Activation, | |
Bidirectional, LSTM, TimeDistributed) | |
from keras.models import Model |