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

AssertionError: Please enter credentials for the IAM dataset in credentials.json or as arguments #37

Closed giangdip2410 closed 4 years ago

giangdip2410 commented 4 years ago

AssertionError Traceback (most recent call last)

in () ----> 1 test_ds = IAMDataset("form_original", train=False) /content/iam_dataset.py in __init__(self, parse_method, credentials, root, train, output_data, output_parse_method, output_form_text_as_array) 174 self._credentials = (credentials["XXX"], credentials["XXX"]) 175 else: --> 176 assert False, "Please enter credentials for the IAM dataset in credentials.json or as arguments" 177 else: 178 self._credentials = credentials AssertionError: Please enter credentials for the IAM dataset in credentials.json or as arguments I saw this error when I try to call : IAMDataset("form_original", train=False) . I already resigned and have user and password but I do not know how to put user and pass word to credentials.json . Please help me to solve this problem, thank you very much !
jonomon commented 4 years ago

Hi, you can simply replace the copy credentials.json.example and rename it to credentials.json with your username and password.