Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TaggingBackends
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Nyx
TaggingBackends
Commits
0e34318e
Commit
0e34318e
authored
2 years ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
--help argument to tagging-backend
parent
d2bec3fc
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
src/taggingbackends/data/labels.py
+3
-1
3 additions, 1 deletion
src/taggingbackends/data/labels.py
src/taggingbackends/main.py
+3
-2
3 additions, 2 deletions
src/taggingbackends/main.py
with
6 additions
and
3 deletions
src/taggingbackends/data/labels.py
+
3
−
1
View file @
0e34318e
...
@@ -177,8 +177,10 @@ class Labels:
...
@@ -177,8 +177,10 @@ class Labels:
elif
len
(
key
)
==
3
:
elif
len
(
key
)
==
3
:
run
,
larva
,
timestamp
=
key
run
,
larva
,
timestamp
=
key
self
.
set_timestep
(
run
,
larva
,
timestamp
,
value
)
self
.
set_timestep
(
run
,
larva
,
timestamp
,
value
)
elif
len
(
key
)
<
1
:
raise
IndexError
(
"
too few dimensions
"
)
else
:
else
:
raise
IndexError
(
"
too
few of
many dimensions
"
)
raise
IndexError
(
"
too many dimensions
"
)
else
:
else
:
run
=
key
run
=
key
self
.
set_run
(
run
,
value
)
self
.
set_run
(
run
,
value
)
...
...
This diff is collapsed.
Click to expand it.
src/taggingbackends/main.py
+
3
−
2
View file @
0e34318e
...
@@ -14,6 +14,7 @@ Usage: tagging-backend [train|predict] --model-instance <name>
...
@@ -14,6 +14,7 @@ Usage: tagging-backend [train|predict] --model-instance <name>
tagging-backend train ... --skip-make-dataset --skip-build-features
tagging-backend train ... --skip-make-dataset --skip-build-features
tagging-backend predict ... --make-dataset --build-features
tagging-backend predict ... --make-dataset --build-features
tagging-backend predict ... --sandbox <token>
tagging-backend predict ... --sandbox <token>
tagging-backend --help
`tagging-backend` typically is run using `poetry run`.
`tagging-backend` typically is run using `poetry run`.
A name must be provided to identify the trained model and its location within
A name must be provided to identify the trained model and its location within
...
@@ -83,9 +84,9 @@ def main(fun=None):
...
@@ -83,9 +84,9 @@ def main(fun=None):
format
=
"
%(levelname)s:%(name)s: %(message)s
"
)
format
=
"
%(levelname)s:%(name)s: %(message)s
"
)
if
fun
is
None
:
if
fun
is
None
:
# called by scripts/tagging-backend
# called by scripts/tagging-backend
if
not
sys
.
argv
[
1
:]:
if
not
sys
.
argv
[
1
:]
or
any
(
arg
==
'
--help
'
for
arg
in
sys
.
argv
)
:
help
(
True
)
help
(
True
)
sys
.
exit
(
"
too few input arguments; subcommand expected:
'
train
'
or
'
predict
'"
)
#
sys.exit("too few input arguments; subcommand expected: 'train' or 'predict'")
return
return
train_or_predict
=
sys
.
argv
[
1
]
train_or_predict
=
sys
.
argv
[
1
]
project_dir
=
model_instance
=
None
project_dir
=
model_instance
=
None
...
...
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