Compare commits

...

3 Commits

Author SHA1 Message Date
2c09745a9f
deeptagger: fix README.adoc instructions
All checks were successful
Alpine 3.20 Success
Debian Bookworm Success
The images are under normal circumstances all symlinks.

What we're actually trying to express is `-not -type d`,
however that is not completely portable.
2024-12-08 22:16:11 +01:00
beb7c5e337
gallery: create DB directory in initialization
So that README.adoc instructions actually work.
2024-12-08 22:09:11 +01:00
19705527a0
Cleanup 2024-02-13 15:44:42 +01:00
3 changed files with 9 additions and 8 deletions

View File

@ -53,7 +53,7 @@ Tagging galleries
The appropriate invocation depends on your machine, and the chosen model.
Unless you have a powerful machine, or use a fast model, it may take forever.
$ find "$GALLERY/images" -type f \
$ find "$GALLERY/images" -type l \
| build/deeptagger --pipe -b 16 -t 0.5 \
models/ml_caformer_m36_dec-5-97527.model \
| sed 's|[^\t]*/||' \

View File

@ -28,11 +28,9 @@ run() {
for model in models/*.model
do
name=$(sed -n 's/^name=//p' "$model")
run "" 1 "$model" "$@"
run "" 4 "$model" "$@"
run "" 16 "$model" "$@"
run --cpu 1 "$model" "$@"
run --cpu 4 "$model" "$@"
run --cpu 16 "$model" "$@"
for batch in 1 4 16
do
run "" $batch "$model" "$@"
run --cpu $batch "$model" "$@"
done
done

View File

@ -296,6 +296,9 @@ func cmdInit(fs *flag.FlagSet, args []string) error {
if fs.NArg() != 1 {
return errWrongUsage
}
if err := os.MkdirAll(fs.Arg(0), 0755); err != nil {
return err
}
if err := openDB(fs.Arg(0)); err != nil {
return err
}