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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nyx
LarvaTagger.jl
Commits
bcc85a04
Commit
bcc85a04
authored
2 years ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
reintroducing system image to get around with executable stack issues
parent
1f6c46d9
Branches
Branches containing commit
No related tags found
1 merge request
!5
Various WebUI bug fixes
Pipeline
#105853
passed
2 years ago
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
recipes/Dockerfile
+8
-5
8 additions, 5 deletions
recipes/Dockerfile
scripts/larvatagger
+14
-8
14 additions, 8 deletions
scripts/larvatagger
with
22 additions
and
13 deletions
recipes/Dockerfile
+
8
−
5
View file @
bcc85a04
FROM
julia:1.9.
0
-b
ullseye
AS
base
FROM
julia:1.9.
1
-b
ookworm
AS
base
ARG
PROJECT_DIR=/app
ARG
PROJECT_DIR=/app
ARG
BRANCH=main
ARG
BRANCH=main
...
@@ -12,11 +12,14 @@ RUN apt-get update \
...
@@ -12,11 +12,14 @@ RUN apt-get update \
&&
git clone
--depth
1
--no-tags
--single-branch
-b
$BRANCH
https://gitlab.pasteur.fr/nyx/larvatagger.jl
"
$JULIA_PROJECT
"
\
&&
git clone
--depth
1
--no-tags
--single-branch
-b
$BRANCH
https://gitlab.pasteur.fr/nyx/larvatagger.jl
"
$JULIA_PROJECT
"
\
&&
rm
-rf
"
$JULIA_PROJECT
/.git"
\
&&
rm
-rf
"
$JULIA_PROJECT
/.git"
\
&&
julia
-e
'using Pkg; try Pkg.rm("TaggingBackends"); catch end; Pkg.instantiate()'
\
&&
julia
-e
'using Pkg; try Pkg.rm("TaggingBackends"); catch end; Pkg.instantiate()'
\
&&
ln
-s
"
$JULIA_PROJECT
/scripts/larvatagger
.jl
"
/bin
\
&&
ln
-s
"
$JULIA_PROJECT
/scripts/larvatagger"
/bin
\
&&
mkdir
-p
"
$JULIA_DEPOT_PATH
/logs"
&&
rm
-f
"
$JULIA_DEPOT_PATH
/logs/manifest_usage.toml"
&&
ln
-s
/dev/null
"
$JULIA_DEPOT_PATH
/logs/manifest_usage.toml"
&&
mkdir
-p
"
$JULIA_DEPOT_PATH
/logs"
&&
rm
-f
"
$JULIA_DEPOT_PATH
/logs/manifest_usage.toml"
&&
ln
-s
/dev/null
"
$JULIA_DEPOT_PATH
/logs/manifest_usage.toml"
ENTRYPOINT
["larvatagger.jl"]
RUN
$JULIA_PROJECT
/test/precompile.sh
--shallow
\
#, "-J/lib/larvatagger.so"]
&&
mv
larvatagger.so /lib/
\
&&
rm
-rf
$JULIA_PROJECT
/test/data
ENTRYPOINT
["larvatagger", "-J/lib/larvatagger.so"]
FROM
base
AS
prebuild
FROM
base
AS
prebuild
...
@@ -24,7 +27,7 @@ FROM base AS prebuild
...
@@ -24,7 +27,7 @@ FROM base AS prebuild
ENV
PIP_DISABLE_PIP_VERSION_CHECK=1 \
ENV
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
PIP_NO_CACHE_DIR=1 \
POETRY_VIRTUALENVS_IN_PROJECT=1 \
POETRY_VIRTUALENVS_IN_PROJECT=1 \
POETRY_VERSION=1.
2.0
POETRY_VERSION=1.
5.1
RUN
apt-get update
\
RUN
apt-get update
\
&&
apt-get
install
--no-install-recommends
-y
python3-dev python3-pip
\
&&
apt-get
install
--no-install-recommends
-y
python3-dev python3-pip
\
...
...
This diff is collapsed.
Click to expand it.
scripts/larvatagger
.jl
→
scripts/larvatagger
+
14
−
8
View file @
bcc85a04
...
@@ -8,6 +8,12 @@
...
@@ -8,6 +8,12 @@
currentdir
=
$(
dirname
"
$(
realpath
"
${
BASH_SOURCE
[0]
}
"
)
"
)
currentdir
=
$(
dirname
"
$(
realpath
"
${
BASH_SOURCE
[0]
}
"
)
"
)
if
[
"
${
1
:0:2
}
"
=
"-J"
]
;
then
cmd
=
$2
else
cmd
=
$1
fi
case
$1
in
case
$1
in
open
)
open
)
shift
shift
...
@@ -20,16 +26,16 @@ import|merge|train|predict|--version|-V)
...
@@ -20,16 +26,16 @@ import|merge|train|predict|--version|-V)
*
)
*
)
cat
<<
"
EOT
"
cat
<<
"
EOT
"
LarvaTagger
.
jl
LarvaTagger
Usage:
Usage:
larvatagger
.
jl
open
<
file
-
path
>
[
--
backends
=<
path
>
]
[
--
port
=<
number
>
]
[
--
quiet
]
[
--
viewer
]
[
--
browser
]
[
--
manual
-
label
=<
label
>
]
larvatagger open <file-path> [--backends=<path>] [--port=<number>] [--quiet] [--viewer] [--browser] [--manual-label=<label>]
larvatagger
.
jl
import
<
input
-
path
>
[
<
output
-
file
>
]
[
--
id
=<
id
>
]
[
--
framerate
=<
fps
>
]
[
--
pixelsize
=<
μm
>
]
[
--
overrides
=<
comma
-
separated
-
list
>
]
[
--
default
-
label
=<
label
>
]
[
--
manual
-
label
=<
label
>
]
[
--
decode
]
[
--
copy
-
labels
]
larvatagger import <input-path> [<output-file>] [--id=<id>] [--framerate=<fps>] [--pixelsize=<μm>] [--overrides=<comma-separated-list>] [--default-label=<label>] [--manual-label=<label>] [--decode] [--copy-labels]
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
>
]
[
--
seed
=<
seed
>
]
larvatagger 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>] [--seed=<seed>]
larvatagger
.
jl
predict
<
backend
-
path
>
<
model
-
instance
>
<
data
-
path
>
[
--
output
=<
filename
>
]
[
--
make
-
dataset
]
[
--
skip
-
make
-
dataset
]
[
--
data
-
isolation
]
larvatagger predict <backend-path> <model-instance> <data-path> [--output=<filename>] [--make-dataset] [--skip-make-dataset] [--data-isolation]
larvatagger
.
jl
merge
<
input
-
path
>
<
input
-
file
>
[
<
output
-
file
>
]
[
--
manual
-
label
=<
label
>
]
[
--
decode
]
larvatagger merge <input-path> <input-file> [<output-file>] [--manual-label=<label>] [--decode]
larvatagger
.
jl
-
V
|
--
version
larvatagger -V | --version
larvatagger
.
jl
-
h
|
--
help
larvatagger -h | --help
Options:
Options:
-h --help Show this screen.
-h --help Show this screen.
...
...
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