Spaces:
Runtime error
Runtime error
Update S10.py
Browse files
S10.py
CHANGED
@@ -61,7 +61,7 @@ class DataAugmentationTest():
|
|
61 |
|
62 |
def __call__(self, image):
|
63 |
image = np.array(image)
|
64 |
-
|
65 |
return image
|
66 |
|
67 |
|
@@ -226,9 +226,5 @@ class Cifar10SearchDataset(pl.LightningModule):
|
|
226 |
return DataLoader(self.cifar10_test, batch_size=64)
|
227 |
|
228 |
|
229 |
-
|
230 |
-
trainer = pl.Trainer(accelerator="auto",max_epochs=1)
|
231 |
-
#datasetcifar=Cifar10SearchDataset()
|
232 |
-
#trainer = pl.Trainer()
|
233 |
-
trainer.fit(model)
|
234 |
|
|
|
61 |
|
62 |
def __call__(self, image):
|
63 |
image = np.array(image)
|
64 |
+
image = self.test_transform(image = image)['image']
|
65 |
return image
|
66 |
|
67 |
|
|
|
226 |
return DataLoader(self.cifar10_test, batch_size=64)
|
227 |
|
228 |
|
229 |
+
|
|
|
|
|
|
|
|
|
230 |
|