Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SVLT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ALMF
SVLT
Commits
38c11c24
Commit
38c11c24
authored
8 months ago
by
Christopher Randolph Rhodes
Browse files
Options
Downloads
Patches
Plain Diff
Still trying to quiet ilastik and its dependencies on main log
parent
2dd28d90
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
model_server/extensions/ilastik/models.py
+9
-2
9 additions, 2 deletions
model_server/extensions/ilastik/models.py
tests/test_ilastik.py
+1
-0
1 addition, 0 deletions
tests/test_ilastik.py
with
10 additions
and
2 deletions
model_server/extensions/ilastik/models.py
+
9
−
2
View file @
38c11c24
import
json
from
logging
import
getLogger
import
os
from
pathlib
import
Path
import
warnings
import
numpy
as
np
from
pydantic
import
BaseModel
...
...
@@ -43,8 +45,13 @@ class IlastikModel(Model):
super
().
__init__
(
autoload
,
params
)
def
load
(
self
):
from
ilastik
import
app
from
ilastik.applets.dataSelection.opDataSelection
import
PreloadedArrayDatasetInfo
# suppress warnings when loading ilastik app
getLogger
(
'
ilastik.app
'
).
setLevel
(
'
ERROR
'
)
with
warnings
.
catch_warnings
():
warnings
.
filterwarnings
(
'
ignore
'
,
category
=
DeprecationWarning
)
from
ilastik
import
app
from
ilastik.applets.dataSelection.opDataSelection
import
PreloadedArrayDatasetInfo
self
.
PreloadedArrayDatasetInfo
=
PreloadedArrayDatasetInfo
...
...
This diff is collapsed.
Click to expand it.
tests/test_ilastik.py
+
1
−
0
View file @
38c11c24
...
...
@@ -11,6 +11,7 @@ from model_server.base.roiset import _get_label_ids, RoiSet, RoiSetMetaParams
from
model_server.base.workflows
import
classify_pixels
from
tests.test_api
import
TestServerBaseClass
def
_random_int
(
*
args
):
return
np
.
random
.
randint
(
0
,
2
**
8
,
size
=
args
,
dtype
=
'
uint8
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment