FastSAM icon indicating copy to clipboard operation
FastSAM copied to clipboard

Bug in mode.val()

Open LucFrachon opened this issue 2 years ago • 0 comments

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?

LucFrachon avatar Aug 03 '23 15:08 LucFrachon