Update testdata.py
Browse files- testdata.py +2 -1
testdata.py
CHANGED
|
@@ -15,7 +15,7 @@
|
|
| 15 |
"""PP4AV dataset."""
|
| 16 |
|
| 17 |
import os
|
| 18 |
-
|
| 19 |
from tqdm import tqdm
|
| 20 |
from pathlib import Path
|
| 21 |
from typing import List
|
|
@@ -105,6 +105,7 @@ class TestData(datasets.GeneratorBasedBuilder):
|
|
| 105 |
files = []
|
| 106 |
objects = []
|
| 107 |
idx = 0
|
|
|
|
| 108 |
for file in glob(os.path.join(image_dir, "*.png")):
|
| 109 |
objects.append({
|
| 110 |
'faces': [1.0, 2.0, 3.0, 4.0]
|
|
|
|
| 15 |
"""PP4AV dataset."""
|
| 16 |
|
| 17 |
import os
|
| 18 |
+
from glob import glob
|
| 19 |
from tqdm import tqdm
|
| 20 |
from pathlib import Path
|
| 21 |
from typing import List
|
|
|
|
| 105 |
files = []
|
| 106 |
objects = []
|
| 107 |
idx = 0
|
| 108 |
+
datasets.logging.info(image_dir)
|
| 109 |
for file in glob(os.path.join(image_dir, "*.png")):
|
| 110 |
objects.append({
|
| 111 |
'faces': [1.0, 2.0, 3.0, 4.0]
|