mirror of
https://github.com/AntoineHX/smart_augmentation.git
synced 2025-05-04 04:00:46 +02:00
Fix cast in Augmented Dataset
This commit is contained in:
parent
2ee8022c2f
commit
adaac437b6
3 changed files with 29 additions and 822 deletions
|
@ -69,7 +69,7 @@ if __name__ == "__main__":
|
|||
'aug_dataset',
|
||||
#'aug_model'
|
||||
}
|
||||
n_inner_iter = 0
|
||||
n_inner_iter = 1
|
||||
epochs = 100
|
||||
dataug_epoch_start=0
|
||||
|
||||
|
@ -104,6 +104,9 @@ if __name__ == "__main__":
|
|||
|
||||
#### Augmented Dataset ####
|
||||
if 'aug_dataset' in tasks:
|
||||
|
||||
xs, ys = next(iter(dl_train))
|
||||
viz_sample_data(imgs=xs, labels=ys, fig_name='samples/data_sample_{}'.format(str(data_train_aug)))
|
||||
t0 = time.process_time()
|
||||
model = LeNet(3,10).to(device)
|
||||
#model = WideResNet(num_classes=10, wrn_size=16).to(device)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue