Open floricaaa opened 4 years ago
你好,我怎样才能得到这两个模型:
cnn_model = torch.load('./model/resnet101_with_fft') model = torch.load('./model/resnet101') in 'cnn_gru_pytorch.py'
对,没有这几个模型两个注意力模型,无法实现
用attention.py报错forward() missing 1 required positional argument: 'len_seq'怎么处理
用attention.py报错forward() missing 1 required positional argument: 'len_seq'怎么处理
我也有这个问题,请问你解决了吗
用attention.py报错forward() missing 1 required positional argument: 'len_seq'怎么处理
我也有这个问题,请问你解决了吗
请问解决了吗
参考_evaluate这个函数中这一句,output = model(data, label, len_seq=[label.size(0)], teacher_forcing_ratio=0.0) 可以在label后面加上len_seq=[label.size(0)],可以跑通
Hi,how can i get these two models :
cnn_model = torch.load('./model/resnet101_with_fft') model = torch.load('./model/resnet101') in 'cnn_gru_pytorch.py'