Skip to content
Snippets Groups Projects
Commit f7a203e5 authored by François  LAURENT's avatar François LAURENT
Browse files

Merge branch 'dev' into 20230129

parents 4cbc6ff5 da969257
No related branches found
No related tags found
No related merge requests found
......@@ -82,10 +82,10 @@ All the [command arguments supported by `TaggingBackends`](https://gitlab.pasteu
Using the [`20230129`](https://gitlab.pasteur.fr/nyx/MaggotUBA-adapter/-/tree/20230129) branch, the `20230129` tagger can be called on a supported tracking data file with:
```
poetry run tagging-backend predict --model-instance 20230129 --skip-make-dataset
poetry run tagging-backend predict --model-instance 20230129
```
The `--skip-make-dataset` option is optional. It only makes *tagging-backend* slightly faster.
Note: since `TaggingBackends==0.10`, the `--skip-make-dataset` argument is default behavior. Pass `--make-dataset` instead to enforce the former default.
For the above command to work, the track data file must be placed (*e.g.* copied) in the `data/raw/20230129` directory, to be first created or cleared.
......
[tool.poetry]
name = "MaggotUBA-adapter"
version = "0.9.1"
version = "0.10"
description = "Interface between MaggotUBA and the Nyx tagging UI"
authors = ["François Laurent"]
license = "MIT"
......
......@@ -71,7 +71,7 @@ class MaggotTrainer:
def pad(self, target_t, defined_t, data):
if data.shape[0] == 1:
return data
return np.repeat(data, len(target_t), axis=0)
else:
head = searchsortedfirst(target_t, defined_t[0])
tail = len(target_t) - (searchsortedlast(target_t, defined_t[-1]) + 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment