FastSAM
FastSAM copied to clipboard
Bug in mode.val()
I am trying to validate FastSAM. So I do:
model = FastSAM('FastSAM-x.pt') results = model.val(data='coco8-seg.yaml')
But I'm getting the following error:
68 args = get_cfg(cfg=DEFAULT_CFG, overrides=overrides)
69 args.imgsz = check_imgsz(args.imgsz, max_dim=1)
---> 70 validator = FastSAM(args=args) 71 validator(model=self.model) 72 self.metrics = validator.metrics
TypeError: FastSAM.init() got an unexpected keyword argument 'args'
Any ideas please?