- changed
annotation_path = 'train_pbr_only.json'to'train_pbr.json'because PoET will look forannotations/train_pbr.json
- needed to add
args.datasettobop_evaluateat line #330 due to exception
Refactored PATHS to ...
PATHS = {
"train": (root, root / "annotations" / f'train.json'),
"train_synt": (root, root / "annotations" / f'train_synt.json'),
"train_pbr": (root, root / "annotations" / f'train_pbr.json'),
"test": (root, root / "annotations" / f'test.json'),
"test_all": (root, root / "annotations" / f'test.json'),
"keyframes": (root, root / "annotations" / f'keyframes.json'),
"keyframes_bop": (root, root / "annotations"/ f'keyframes_bop.json'),
"val": (root / "val", root / "annotations" / f'val.json'),
}
... because pose_dataset.py will prepend e.g. train/, test/, etc., to the image file paths in e.g., annotations/train.json
- added
annFile = json.load(open(annFile, 'r'))in constructor ofCocoDetectionbecauseannFileis of typePosixPathand COCO requires eatherstrordict
- changed used numpy dtype
floattonp.floatdue to exception
- changed
text_width, text_height = font.getsize(txt)in line #70 totext_width, text_height = font.getbbox(txt)[2:4]because the former is deprecated - changed
model_typetofinebecauseeval3D models dont have a normal that is required for visualization???