mirror of
https://github.com/AIGC-Audio/AudioGPT.git
synced 2025-12-15 19:37:52 +01:00
fix e
This commit is contained in:
@@ -1113,9 +1113,9 @@ class RaDur_fusion(nn.Module):
|
||||
self.detection = CDur_CNN_mul_scale_fusion(inputdim, outputdim, time_resolution)
|
||||
self.softmax = nn.Softmax(dim=2)
|
||||
#self.temperature = 5
|
||||
if model_config['pre_train']:
|
||||
self.encoder.load_state_dict(torch.load(model_config['encoder_path'])['model'])
|
||||
self.detection.load_state_dict(torch.load(model_config['CDur_path']))
|
||||
# if model_config['pre_train']:
|
||||
# self.encoder.load_state_dict(torch.load(model_config['encoder_path'])['model'])
|
||||
# self.detection.load_state_dict(torch.load(model_config['CDur_path']))
|
||||
|
||||
self.q = nn.Linear(128,128)
|
||||
self.k = nn.Linear(128,128)
|
||||
|
||||
Reference in New Issue
Block a user