Skip to content

cannot instantiate SegmentationKS for training #3

@kashefy

Description

@kashefy

Hey @chrschy, I was trying out demo for training SegmentationKS and ran into an error. The constructor checks if the model file exists and produces an error if it cannot find it. This happens here.

In order to train SegmentationKS I would still need to create an instance and it will not get past this line. Or am I missing something?

If this is indeed the case, I was thinking we could

  1. pass a flag to the constructor to indicate that we're instantiating the object in "train mode" and skip this check accordingly.
  2. Turn the train method into a static method or a factory method that does not need the object.

Option 1 seems simpler. What do you think?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions