We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5628661 commit dfa96e8Copy full SHA for dfa96e8
apps/object-detection/app/eval.py
@@ -177,8 +177,9 @@ def main(params):
177
178
print(f"Creating dataset...")
179
try:
180
- dataset = PyTorchDataset.ApertureDBDataset(
181
- pool, q, batch_size=1, label_prop="_uniqueid")
+ with pool.get_connection() as client:
+ dataset = PyTorchDataset.ApertureDBDataset(
182
+ client, q, batch_size=1, label_prop="_uniqueid")
183
except Exception as e:
184
print("Error creating dataset:", e)
185
dataset = []
0 commit comments