mirror of
https://github.com/AntoineHX/smart_augmentation.git
synced 2025-05-04 12:10:45 +02:00
Test KL divergence from UDA
This commit is contained in:
parent
fa5bc72616
commit
217f94ef89
5 changed files with 52 additions and 28 deletions
|
@ -50,6 +50,7 @@ class AugmentedDataset(VisionDataset):
|
|||
for idx, img in enumerate(self.sup_data):
|
||||
self.sup_data[idx]= Image.fromarray(img) #to PIL Image
|
||||
|
||||
self.unsup_ratio=5 #Batch size unsup = train batch size * unsup_ratio
|
||||
self.unsup_data=[]
|
||||
self.unsup_targets=[]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue