Skip to content
Snippets Groups Projects
Commit f124f70f authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Removed model_id from Model objects, which in any case in managed by session. ...

Removed model_id from Model objects, which in any case in managed by session.  But tests aren't passing; need to investigate further.
parent 53052215
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,6 @@ class IlastikParams(BaseModel):
True,
description='Load another instance of the same project file if True; return existing one if False'
)
model_id: Union[str, None] = Field(None, description='Unique identifier of the model, or autogenerate if empty')
class IlastikModel(Model):
......@@ -108,7 +107,6 @@ class IlastikPixelClassifierParams(IlastikParams):
px_prob_threshold: float = 0.5
class IlastikPixelClassifierModel(IlastikModel, SemanticSegmentationModel):
model_id = 'ilastik_pixel_classification'
operations = ['segment', ]
def __init__(self, params: IlastikPixelClassifierParams, **kwargs):
......@@ -175,7 +173,6 @@ class IlastikPixelClassifierModel(IlastikModel, SemanticSegmentationModel):
class IlastikObjectClassifierFromSegmentationModel(IlastikModel, InstanceSegmentationModel):
model_id = 'ilastik_object_classification_from_segmentation'
@staticmethod
def _make_8bit_mask(nda):
......@@ -249,7 +246,6 @@ class IlastikObjectClassifierFromSegmentationModel(IlastikModel, InstanceSegment
class IlastikObjectClassifierFromPixelPredictionsModel(IlastikModel, ImageToImageModel):
model_id = 'ilastik_object_classification_from_pixel_predictions'
@staticmethod
def get_workflow():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment