captcha_break icon indicating copy to clipboard operation
captcha_break copied to clipboard

将pytorch_ctc改为py文件时出现问题

Open BerryRB opened this issue 5 years ago • 1 comments

您好!我将从ctc_pytorch改为py文件运行,在我本地电脑运行没有错误,改为远程服务器时出现以下错误: liurui@eversec-desktop:~/yzmre$ python ctc.py File "ctc.py", line 64 modules[f'conv{name}'] = nn.Conv2d(in_channels, out_channels, kernel_size, padding=(1, 1) if kernel_size == 3 else 0) ^ SyntaxError: invalid syntax 请问您知道这是什么原因吗

BerryRB avatar Oct 10 '19 03:10 BerryRB

你可以使用Python3.6以上的版本,看起来是版本的原因。

ypwhs avatar Oct 10 '19 11:10 ypwhs