Skip to content

Commit 6f70650

Browse files
author
um1
committed
modify the weight
1 parent 1cd21fc commit 6f70650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def train_model(model, criterion, optimizer, scheduler, num_epochs=25):
393393
#supervised via teacher like dino. previous use sm(outputs1 + outputs2)
394394
kl_loss = nn.KLDivLoss(reduction='batchmean')
395395
reg= (kl_loss(log_sm(outputs2), sm(outputs1)) + kl_loss(log_sm(outputs1) , sm(outputs2)))/2
396-
loss += 0.01*reg
396+
loss += 0.1*reg
397397
del inputs1, inputs2
398398
#print(0.01*reg)
399399
# backward + optimize only if in training phase

0 commit comments

Comments
 (0)