Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qim3d
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
QIM
Tools
qim3d
Commits
8ef7e066
Commit
8ef7e066
authored
1 year ago
by
s184058
Committed by
fima
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Change gui launch pipeline
parent
caede17f
Branches
Branches containing commit
No related tags found
1 merge request
!51
Change gui launch pipeline
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
qim3d/__init__.py
+0
-1
0 additions, 1 deletion
qim3d/__init__.py
qim3d/gui/local_thickness.py
+2
-1
2 additions, 1 deletion
qim3d/gui/local_thickness.py
qim3d/io/downloader.py
+1
-1
1 addition, 1 deletion
qim3d/io/downloader.py
qim3d/utils/cli.py
+23
-7
23 additions, 7 deletions
qim3d/utils/cli.py
with
26 additions
and
10 deletions
qim3d/__init__.py
+
0
−
1
View file @
8ef7e066
...
@@ -6,4 +6,3 @@ import qim3d.models as models
...
@@ -6,4 +6,3 @@ import qim3d.models as models
import
logging
import
logging
examples
=
io
.
ImgExamples
()
examples
=
io
.
ImgExamples
()
downloader
=
io
.
Downloader
()
This diff is collapsed.
Click to expand it.
qim3d/gui/local_thickness.py
+
2
−
1
View file @
8ef7e066
...
@@ -71,7 +71,7 @@ class Interface:
...
@@ -71,7 +71,7 @@ class Interface:
session
.
zpos
=
zpos
session
.
zpos
=
zpos
return
session
return
session
def
launch
(
self
,
img
=
None
):
def
launch
(
self
,
img
=
None
,
**
kwargs
):
# Show header
# Show header
if
self
.
show_header
:
if
self
.
show_header
:
internal_tools
.
gradio_header
(
self
.
title
,
self
.
port
)
internal_tools
.
gradio_header
(
self
.
title
,
self
.
port
)
...
@@ -90,6 +90,7 @@ class Interface:
...
@@ -90,6 +90,7 @@ class Interface:
quiet
=
quiet
,
quiet
=
quiet
,
height
=
self
.
height
,
height
=
self
.
height
,
width
=
self
.
width
,
width
=
self
.
width
,
**
kwargs
)
)
return
return
...
...
This diff is collapsed.
Click to expand it.
qim3d/io/downloader.py
+
1
−
1
View file @
8ef7e066
...
@@ -22,7 +22,7 @@ class Downloader:
...
@@ -22,7 +22,7 @@ class Downloader:
[
folder_name_n
]
(
str
):
folder
class
with
the
name
of
the
n
-
th
folder
in
the
QIM
data
repository
.
[
folder_name_n
]
(
str
):
folder
class
with
the
name
of
the
n
-
th
folder
in
the
QIM
data
repository
.
Example:
Example:
dl = Downloader()
dl =
qim3d.io.
Downloader()
# Downloads and Loads (optional) image:
# Downloads and Loads (optional) image:
img = dl.Corals.Coral2_DOWNSAMPLED(load = True)
img = dl.Corals.Coral2_DOWNSAMPLED(load = True)
"""
"""
...
...
This diff is collapsed.
Click to expand it.
qim3d/utils/cli.py
+
23
−
7
View file @
8ef7e066
...
@@ -13,23 +13,39 @@ def main():
...
@@ -13,23 +13,39 @@ def main():
gui_parser
.
add_argument
(
'
--annotation-tool
'
,
action
=
'
store_true
'
,
help
=
'
Run annotation tool.
'
)
gui_parser
.
add_argument
(
'
--annotation-tool
'
,
action
=
'
store_true
'
,
help
=
'
Run annotation tool.
'
)
gui_parser
.
add_argument
(
'
--local-thickness
'
,
action
=
'
store_true
'
,
help
=
'
Run local thickness tool.
'
)
gui_parser
.
add_argument
(
'
--local-thickness
'
,
action
=
'
store_true
'
,
help
=
'
Run local thickness tool.
'
)
gui_parser
.
add_argument
(
'
--host
'
,
default
=
'
0.0.0.0
'
,
help
=
'
Desired host.
'
)
gui_parser
.
add_argument
(
'
--host
'
,
default
=
'
0.0.0.0
'
,
help
=
'
Desired host.
'
)
gui_parser
.
add_argument
(
'
--platform
'
,
action
=
'
store_true
'
,
help
=
'
Use QIM platform address
'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
if
args
.
subcommand
==
'
gui
'
:
if
args
.
subcommand
==
'
gui
'
:
arghost
=
args
.
host
arghost
=
args
.
host
if
args
.
data_explorer
:
if
args
.
data_explorer
:
if
args
.
platform
:
data_explorer
.
run_interface
(
arghost
)
data_explorer
.
run_interface
(
arghost
)
else
:
interface
=
data_explorer
.
Interface
()
interface
.
launch
()
elif
args
.
iso3d
:
elif
args
.
iso3d
:
if
args
.
platform
:
iso3d
.
run_interface
(
arghost
)
iso3d
.
run_interface
(
arghost
)
else
:
interface
=
iso3d
.
Interface
()
interface
.
launch
()
elif
args
.
annotation_tool
:
elif
args
.
annotation_tool
:
if
args
.
platform
:
annotation_tool
.
run_interface
(
arghost
)
annotation_tool
.
run_interface
(
arghost
)
else
:
interface
=
annotation_tool
.
Interface
()
interface
.
launch
()
elif
args
.
local_thickness
:
elif
args
.
local_thickness
:
if
args
.
platform
:
local_thickness
.
run_interface
(
arghost
)
local_thickness
.
run_interface
(
arghost
)
else
:
interface
=
local_thickness
.
Interface
()
interface
.
launch
()
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
main
()
main
()
\ No newline at end of file
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