doesn't provide any suggestions from the language server, even though torch/nn/__init__.pyi contains from .modules import * from .parameter import Parameter as Parameter from .parallel import DataParallel as DataParallel from . import init as init from . import utils as utils 👍 9 malmaud...
CRNN(32, 1, 37, 256, 1).cuda() print('loading pretrained model from %s' % model_path) model.load_state_dict(torch.load(model_path)) converter = utils.strLabelConverter(alphabet) transformer = dataset.resizeNormalize((100, 32)) image = Image.open(img_path).convert('L') image = ...