Spaces:
Runtime error
Runtime error
BraveLizzy
commited on
Commit
•
69b2b21
1
Parent(s):
8ee8a20
Update LowLight.py
Browse files- LowLight.py +1 -1
LowLight.py
CHANGED
@@ -19,7 +19,7 @@ def inference_img(img_path,Net):
|
|
19 |
data_lowlight = (np.asarray(low_image)/255.0)
|
20 |
data_lowlight = torch.from_numpy(data_lowlight).float()
|
21 |
data_lowlight = data_lowlight.permute(2,0,1)
|
22 |
-
low_image = data_lowlight.
|
23 |
|
24 |
with torch.no_grad():
|
25 |
start = time.time()
|
|
|
19 |
data_lowlight = (np.asarray(low_image)/255.0)
|
20 |
data_lowlight = torch.from_numpy(data_lowlight).float()
|
21 |
data_lowlight = data_lowlight.permute(2,0,1)
|
22 |
+
low_image = data_lowlight.unsqueeze(0)
|
23 |
|
24 |
with torch.no_grad():
|
25 |
start = time.time()
|