Spaces:
Runtime error
Runtime error
Commit
·
1bb0e15
1
Parent(s):
bb52dcf
updated mirnet
Browse files
enhance_me/mirnet/mirnet.py
CHANGED
|
@@ -39,15 +39,15 @@ class MIRNet:
|
|
| 39 |
self.test_low_images,
|
| 40 |
self.test_enhanced_images,
|
| 41 |
) = download_lol_dataset()
|
| 42 |
-
self._build_datasets(
|
| 43 |
-
low_images, enhanced_images, val_split=val_split, batch_size=batch_size
|
| 44 |
-
)
|
| 45 |
self.data_loader = LowLightDataset(
|
| 46 |
image_size=image_size,
|
| 47 |
apply_random_horizontal_flip=apply_random_horizontal_flip,
|
| 48 |
apply_random_vertical_flip=apply_random_vertical_flip,
|
| 49 |
apply_random_rotation=apply_random_rotation,
|
| 50 |
)
|
|
|
|
|
|
|
|
|
|
| 51 |
if wandb_api_key is not None:
|
| 52 |
init_wandb("mirnet", experiment_name, wandb_api_key)
|
| 53 |
self.using_wandb = True
|
|
|
|
| 39 |
self.test_low_images,
|
| 40 |
self.test_enhanced_images,
|
| 41 |
) = download_lol_dataset()
|
|
|
|
|
|
|
|
|
|
| 42 |
self.data_loader = LowLightDataset(
|
| 43 |
image_size=image_size,
|
| 44 |
apply_random_horizontal_flip=apply_random_horizontal_flip,
|
| 45 |
apply_random_vertical_flip=apply_random_vertical_flip,
|
| 46 |
apply_random_rotation=apply_random_rotation,
|
| 47 |
)
|
| 48 |
+
self._build_datasets(
|
| 49 |
+
low_images, enhanced_images, val_split=val_split, batch_size=batch_size
|
| 50 |
+
)
|
| 51 |
if wandb_api_key is not None:
|
| 52 |
init_wandb("mirnet", experiment_name, wandb_api_key)
|
| 53 |
self.using_wandb = True
|