mirror of
https://github.com/AIGC-Audio/AudioGPT.git
synced 2025-12-16 11:57:58 +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.detection = CDur_CNN_mul_scale_fusion(inputdim, outputdim, time_resolution)
|
||||||
self.softmax = nn.Softmax(dim=2)
|
self.softmax = nn.Softmax(dim=2)
|
||||||
#self.temperature = 5
|
#self.temperature = 5
|
||||||
if model_config['pre_train']:
|
# if model_config['pre_train']:
|
||||||
self.encoder.load_state_dict(torch.load(model_config['encoder_path'])['model'])
|
# self.encoder.load_state_dict(torch.load(model_config['encoder_path'])['model'])
|
||||||
self.detection.load_state_dict(torch.load(model_config['CDur_path']))
|
# self.detection.load_state_dict(torch.load(model_config['CDur_path']))
|
||||||
|
|
||||||
self.q = nn.Linear(128,128)
|
self.q = nn.Linear(128,128)
|
||||||
self.k = nn.Linear(128,128)
|
self.k = nn.Linear(128,128)
|
||||||
|
|||||||
Reference in New Issue
Block a user