(self, opt)
| 33 | return parser |
| 34 | |
| 35 | def get_paths(self, opt): |
| 36 | label_dir = opt.label_dir |
| 37 | label_paths = make_dataset(label_dir, recursive=False, read_cache=True) |
| 38 | |
| 39 | image_dir = opt.image_dir |
| 40 | image_paths = make_dataset(image_dir, recursive=False, read_cache=True) |
| 41 | |
| 42 | if len(opt.instance_dir) > 0: |
| 43 | instance_dir = opt.instance_dir |
| 44 | instance_paths = make_dataset(instance_dir, recursive=False, read_cache=True) |
| 45 | else: |
| 46 | instance_paths = [] |
| 47 | |
| 48 | assert len(label_paths) == len(image_paths), "The #images in %s and %s do not match. Is there something wrong?" |
| 49 | |
| 50 | return label_paths, image_paths, instance_paths |
nothing calls this directly
no test coverage detected