Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alibylite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Swain Lab
aliby
alibylite
Commits
2afa7d57
Commit
2afa7d57
authored
3 years ago
by
Alán Muñoz
Browse files
Options
Downloads
Patches
Plain Diff
add babyParameters being passed
parent
c7e762b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pcore/baby_client.py
+10
-5
10 additions, 5 deletions
pcore/baby_client.py
with
10 additions
and
5 deletions
pcore/baby_client.py
+
10
−
5
View file @
2afa7d57
...
@@ -76,6 +76,7 @@ class BabyParameters(ParametersABC):
...
@@ -76,6 +76,7 @@ class BabyParameters(ParametersABC):
print_info
,
print_info
,
suppress_errors
,
suppress_errors
,
error_dump_dir
,
error_dump_dir
,
tf_version
,
):
):
self
.
model_config
=
model_config
self
.
model_config
=
model_config
self
.
tracker_params
=
tracker_params
self
.
tracker_params
=
tracker_params
...
@@ -87,6 +88,7 @@ class BabyParameters(ParametersABC):
...
@@ -87,6 +88,7 @@ class BabyParameters(ParametersABC):
self
.
print_info
=
print_info
self
.
print_info
=
print_info
self
.
suppress_errors
=
suppress_errors
self
.
suppress_errors
=
suppress_errors
self
.
error_dump_dir
=
error_dump_dir
self
.
error_dump_dir
=
error_dump_dir
self
.
tf_version
=
tf_version
@classmethod
@classmethod
def
default
(
cls
,
**
kwargs
):
def
default
(
cls
,
**
kwargs
):
...
@@ -102,6 +104,7 @@ class BabyParameters(ParametersABC):
...
@@ -102,6 +104,7 @@ class BabyParameters(ParametersABC):
print_info
=
False
,
print_info
=
False
,
suppress_errors
=
False
,
suppress_errors
=
False
,
error_dump_dir
=
None
,
error_dump_dir
=
None
,
tf_version
=
2
,
)
)
...
@@ -113,11 +116,13 @@ class BabyRunner:
...
@@ -113,11 +116,13 @@ class BabyRunner:
def
__init__
(
self
,
tiler
,
parameters
=
None
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
tiler
,
parameters
=
None
,
*
args
,
**
kwargs
):
self
.
tiler
=
tiler
self
.
tiler
=
tiler
# self.model_config = modelsets()[choose_model_from_params(**kwargs)]
# self.model_config = modelsets()[choose_model_from_params(**kwargs)]
self
.
model_config
=
(
self
.
model_config
=
modelsets
()[
parameters
.
model_config
(
if
parameters
is
not
None
parameters
.
model_config
else
modelsets
()[
choose_model_from_params
(
**
kwargs
)]
if
parameters
is
not
None
)
else
choose_model_from_params
(
**
kwargs
)
)
]
self
.
brain
=
BabyBrain
(
**
self
.
model_config
)
self
.
brain
=
BabyBrain
(
**
self
.
model_config
)
self
.
crawler
=
BabyCrawler
(
self
.
brain
)
self
.
crawler
=
BabyCrawler
(
self
.
brain
)
self
.
bf_channel
=
self
.
tiler
.
get_channel_index
(
"
Brightfield
"
)
self
.
bf_channel
=
self
.
tiler
.
get_channel_index
(
"
Brightfield
"
)
...
...
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