Skip to content

Commit e6b5f19

Browse files
committed
Refactor utils.py.
1 parent 3daadc9 commit e6b5f19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dataset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import tifffile
55
import torch
66
from torch.utils.data import Dataset
7-
from utils import *
7+
from utils import utils
88

99
class XViewDataset(Dataset):
1010
"Dataset for xView"
@@ -34,7 +34,7 @@ def __getitem__(self, idx, return_img=False):
3434
else:
3535
raise ValueError('Incorrect mode! Must be cls or loc')
3636

37-
img = preprocess_inputs(img)
37+
img = utils.preprocess_inputs(img)
3838

3939
inp = []
4040
inp.append(img)

utils.py utils/utils.py

File renamed without changes.

0 commit comments

Comments
 (0)