ddrrrr / projectRUL

to prediction the remain useful life of bearing based on 2012 PHM data
265 stars 63 forks source link

resnet model #1

Open floricaaa opened 4 years ago

floricaaa commented 4 years ago

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'

SAD-BABOON commented 3 years ago

你好,我怎样才能得到这两个模型:

cnn_model = torch.load('./model/resnet101_with_fft') model = torch.load('./model/resnet101') in 'cnn_gru_pytorch.py​​'

对,没有这几个模型两个注意力模型,无法实现

Contraser commented 8 months ago

用attention.py报错forward() missing 1 required positional argument: 'len_seq'怎么处理

yaya-gs commented 7 months ago

用attention.py报错forward() missing 1 required positional argument: 'len_seq'怎么处理

我也有这个问题,请问你解决了吗

mon1ystar commented 6 months ago

用attention.py报错forward() missing 1 required positional argument: 'len_seq'怎么处理

我也有这个问题,请问你解决了吗

请问解决了吗

Lovestonedt commented 2 months ago

参考_evaluate这个函数中这一句,output = model(data, label, len_seq=[label.size(0)], teacher_forcing_ratio=0.0) 可以在label后面加上len_seq=[label.size(0)],可以跑通