Looks like you already have an issue on the implementor’s GitHub page: https://github.com/meijieru/crnn.pytorch/issues/23 364
I responded there with a solution to your problem. (Or at least, a solution to one of your problems, can’t guarantee the rest of your code will run).
Probably best to keep any further discussion to implementor’s GitHub since this is pretty specific to that code base.
Best,
Stephen