Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LarvaTagger.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
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
LarvaTagger.jl
Commits
81c851f8
Commit
81c851f8
authored
2 years ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
--class-weights argument for train (
#83
)
parent
bb237818
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#97821
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cli.jl
+6
-1
6 additions, 1 deletion
src/cli.jl
with
6 additions
and
1 deletion
src/cli.jl
+
6
−
1
View file @
81c851f8
...
...
@@ -10,7 +10,7 @@ usage = """Larva Tagger.
Usage:
larvatagger.jl import <input-path> [<output-file>] [--id=<id>] [--framerate=<fps>] [--pixelsize=<μm>] [--overrides=<comma-separated-list>] [--default-label=<label>] [--manual-label=<label>] [--decode]
larvatagger.jl open <file-path> [--backends=<path>] [--port=<number>] [--quiet] [--viewer] [--browser] [--manual-label=<label>]
larvatagger.jl train <backend-path> <data-path> <model-instance> [--pretrained-model=<instance>] [--labels=<comma-separated-list>] [--sample-size=<N>] [--balancing-strategy=<strategy>] [--manual-label=<label>] [--layers=<N>] [--iterations=<N>]
larvatagger.jl train <backend-path> <data-path> <model-instance> [--pretrained-model=<instance>] [--labels=<comma-separated-list>] [--sample-size=<N>] [--balancing-strategy=<strategy>]
[--class-weights=<csv>]
[--manual-label=<label>] [--layers=<N>] [--iterations=<N>]
larvatagger.jl predict <backend-path> <model-instance> <data-path> [--make-dataset] [--skip-make-dataset] [--data-isolation]
larvatagger.jl merge <input-path> <input-file> [<output-file>] [--manual-label=<label>] [--decode]
larvatagger.jl -V | --version
...
...
@@ -37,6 +37,7 @@ Options:
--default-label=<label> Label all untagged data as <label>.
--manual-label=<label> Secondary label for manually labelled data [default: edited].
--labels=<comma-separated-list> Comma-separated list of behavior tags/labels.
--class-weights=<csv> Comma-separated list of floats.
--pretrained-model=<instance> Name of the pretrained encoder (from `pretrained_models` registry).
--balancing-strategy=<strategy> Any of `auto`, `maggotuba`, `none` [default: auto].
--overrides=<comma-separated-list> Comma-separated list of key:value pairs.
...
...
@@ -72,6 +73,8 @@ Commands:
train Train a tagger.
<data-path> can be a path to a file or directory.
--class-weights requires --labels to be defined and the specified comma-separated values
should match those given by --labels.
predict Automatically label tracking data.
...
...
@@ -294,6 +297,8 @@ function main(args=ARGS; exit_on_error=true)
isnothing
(
layers
)
||
(
kwargs
[
:
layers
]
=
layers
)
iterations
=
parsed_args
[
"--iterations"
]
isnothing
(
iterations
)
||
(
kwargs
[
:
iterations
]
=
iterations
)
classweights
=
parsed_args
[
"--class-weights"
]
isnothing
(
classweights
)
||
(
kwargs
[
:
class_weights
]
=
classweights
)
train
(
tagger
;
pretrained_instance
=
parsed_args
[
"--pretrained-model"
],
labels
=
parsed_args
[
"--labels"
],
...
...
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