Spaces:
Sleeping
Sleeping
Final test
Browse files
prismer/experts/depth/generate_dataset.py
CHANGED
@@ -17,9 +17,7 @@ class Dataset(Dataset):
|
|
17 |
def __init__(self, config, transform):
|
18 |
self.data_path = config['data_path']
|
19 |
self.transform = transform
|
20 |
-
|
21 |
-
data_folders = glob.glob(f'{self.data_path}/*/')
|
22 |
-
self.data_list = [data for f in data_folders for data in glob.glob(f + '*.jpg')]
|
23 |
|
24 |
def __len__(self):
|
25 |
return len(self.data_list)
|
|
|
17 |
def __init__(self, config, transform):
|
18 |
self.data_path = config['data_path']
|
19 |
self.transform = transform
|
20 |
+
self.data_list = [f'helpers/images/{config["im_name"]}.jpg']
|
|
|
|
|
21 |
|
22 |
def __len__(self):
|
23 |
return len(self.data_list)
|
requirements.txt
CHANGED
@@ -9,7 +9,7 @@ pillow~=9.2.0
|
|
9 |
torchvision~=0.15.1
|
10 |
opencv-python-headless==4.7.0.72
|
11 |
timm~=0.6.12
|
12 |
-
matplotlib~=3.
|
13 |
pycocotools~=2.0.4
|
14 |
scikit-learn==0.24.2
|
15 |
yacs~=0.1.8
|
|
|
9 |
torchvision~=0.15.1
|
10 |
opencv-python-headless==4.7.0.72
|
11 |
timm~=0.6.12
|
12 |
+
matplotlib~=3.7.1
|
13 |
pycocotools~=2.0.4
|
14 |
scikit-learn==0.24.2
|
15 |
yacs~=0.1.8
|