awslabs / handwritten-text-recognition-for-apache-mxnet

This repository lets you train neural networks models for performing end-to-end full-page handwriting recognition using the Apache MXNet deep learning frameworks on the IAM Dataset.
Apache License 2.0
481 stars 189 forks source link

New registration is overriding existing custom operator _smoothing_with_dim #23

Closed karansdoshi closed 4 years ago

karansdoshi commented 4 years ago

2020-03-03 (1) I have installed all the latest modules required and basically untitled.py contains all the importing of modules required for handwriting_ocr.ipynb

jonomon commented 4 years ago

Hi karansdoshi,

Without knowing exactly what is in untitled.py, it's very difficult for me to debug your issue.

Please provide the line of code that causes the error.

karansdoshi commented 4 years ago

error on line 23,26,29,30,32 `import difflib import importlib import math import random import string

random.seed(123)

import cv2 import gluonnlp as nlp import leven import matplotlib.pyplot as plt import matplotlib.patches as patches import mxnet as mx import numpy as np from skimage import transform as skimage_tf, exposure from tqdm import tqdm

from ocr.utils.expand_bounding_box import expand_bounding_box from ocr.utils.sclite_helper import ScliteHelper from ocr.utils.word_to_line import sort_bbs_line_by_line, crop_line_images from ocr.utils.iam_dataset import IAMDataset, resize_image, crop_image, crop_handwriting_page

from ocr.utils.encoder_decoder import Denoiser, ALPHABET, encode_char, decode_char, EOS, BOS

from ocr.utils.beam_search import ctcBeamSearch

import ocr.utils.denoiser_utils

import ocr.utils.beam_search

importlib.reload(ocr.utils.denoiser_utils)

from ocr.utils.denoiser_utils import SequenceGenerator

importlib.reload(ocr.utils.beam_search)

from ocr.utils.beam_search import ctcBeamSearch

from ocr.paragraph_segmentation_dcnn import SegmentationNetwork, paragraph_segmentation_transform from ocr.word_and_line_segmentation import SSD as WordSegmentationNet, predict_bounding_boxes from ocr.handwriting_line_recognition import Network as HandwritingRecognitionNet, handwriting_recognition_transform from ocr.handwriting_line_recognition import decode as decoder_handwriting, alphabet_encoding`

jonomon commented 4 years ago

What are the error messages?

karansdoshi commented 4 years ago

[23:45:02] src/c_api/../operator/custom/custom-inl.h:57: New registration is overriding existing custom operator _smoothing_with_dim

jonomon commented 4 years ago

Which file is this?