Update DSRNet/test_sirs.py
Browse files- DSRNet/test_sirs.py +3 -1
DSRNet/test_sirs.py
CHANGED
|
@@ -13,6 +13,8 @@ from engine import Engine
|
|
| 13 |
from options.net_options.train_options import TrainOptions
|
| 14 |
from tools import mutils
|
| 15 |
|
|
|
|
|
|
|
| 16 |
def remove_reflection(image_path):
|
| 17 |
# Initialize options and engine
|
| 18 |
opt = TrainOptions().parse()
|
|
@@ -35,7 +37,7 @@ def remove_reflection(image_path):
|
|
| 35 |
datadir = opt.base_dir
|
| 36 |
test_dataset_real = datasets.RealDataset(datadir)
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
test_dataloader_real = datasets.DataLoader(test_dataset_real, batch_size=1, shuffle=False, num_workers=opt.nThreads,
|
| 41 |
pin_memory=True)
|
|
|
|
| 13 |
from options.net_options.train_options import TrainOptions
|
| 14 |
from tools import mutils
|
| 15 |
|
| 16 |
+
import streamlit as st
|
| 17 |
+
|
| 18 |
def remove_reflection(image_path):
|
| 19 |
# Initialize options and engine
|
| 20 |
opt = TrainOptions().parse()
|
|
|
|
| 37 |
datadir = opt.base_dir
|
| 38 |
test_dataset_real = datasets.RealDataset(datadir)
|
| 39 |
|
| 40 |
+
st.write(datadir)
|
| 41 |
|
| 42 |
test_dataloader_real = datasets.DataLoader(test_dataset_real, batch_size=1, shuffle=False, num_workers=opt.nThreads,
|
| 43 |
pin_memory=True)
|