Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions yolo/tools/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ def __init__(

with contextlib.redirect_stdout(io.StringIO()):
# TODO: load with config file
json_path, _ = locate_label_paths(Path(dataset_cfg.path), dataset_cfg.get("validation", "val"))
if json_path:
json_path, file_type = locate_label_paths(Path(dataset_cfg.path), dataset_cfg.get("validation", "val"))
if json_path and file_type == "json":
self.coco_gt = COCO(json_path)

def solve(self, dataloader, epoch_idx=1):
Expand Down