attr-eomt 1.2.1__tar.gz → 2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- attr_eomt-2.1.0/.github/workflows/prerelease.yml +85 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/.github/workflows/release.yml +4 -1
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/.gitignore +4 -1
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/PKG-INFO +272 -199
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/README.md +271 -198
- attr_eomt-2.1.0/configs/xview.yaml +26 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/api.py +47 -12
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/aux_cls.py +59 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/compress.py +1 -2
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/config.py +11 -7
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/data/__init__.py +9 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/data/coco.py +35 -4
- attr_eomt-2.1.0/eomt/data/config.py +128 -0
- attr_eomt-2.1.0/eomt/data/sets.py +352 -0
- attr_eomt-2.1.0/eomt/data/subjects.py +278 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/data/transforms.py +5 -4
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/ema.py +2 -1
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/engine/match.py +49 -19
- attr_eomt-2.1.0/eomt/engine/predict.py +411 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/engine/track.py +4 -4
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/engine/train.py +646 -168
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/engine/validate.py +245 -11
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/loss.py +52 -12
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/model.py +200 -4
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/postprocess.py +9 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/reid.py +1 -3
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/serialization.py +14 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/tta.py +3 -4
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/pyproject.toml +1 -1
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/sample_data/README.md +15 -3
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/sample_data/data.yaml +5 -10
- attr_eomt-2.1.0/sample_data/run.yaml +55 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/match.py +10 -6
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/predict.py +10 -2
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/train.py +38 -33
- attr_eomt-2.1.0/scripts/train_multiview.py +47 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/site/index.html +2 -2
- attr_eomt-2.1.0/tests/test_hires.py +70 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_regression_attr.py +25 -23
- attr_eomt-2.1.0/tests/test_run_config.py +102 -0
- attr_eomt-2.1.0/tests/test_subjects.py +242 -0
- attr_eomt-2.1.0/tests/test_xview.py +415 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/uv.lock +1 -1
- attr_eomt-1.2.1/eomt/data/config.py +0 -83
- attr_eomt-1.2.1/eomt/engine/predict.py +0 -242
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/.github/workflows/pages.yml +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/.github/workflows/publish.yml +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/.github/workflows/tests.yml +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/LICENSE +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/configs/coco.yaml +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/docs/assets/00-hero-banner.png +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/docs/assets/00-hero-banner.svg +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/docs/examples/billie_eilish.jpg +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/docs/examples/rosalia.jpg +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/docs/examples/sample.jpg +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/docs/examples/taylor_swift.jpg +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/__init__.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/box_loss.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/data/download.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/device.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/engine/__init__.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/engine/distributed.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/plotting.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/preprocess.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/visualize.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/sample_data/annotations/instances_train.json +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/sample_data/annotations/instances_val.json +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/sample_data/images/train/.gitkeep +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/sample_data/images/val/.gitkeep +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/info.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/push_to_hub.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/track.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/train_detect_coco.sh +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/val.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_api.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_architecture.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_augment.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_compress.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_ddp.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_parity.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_recipe.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_reid.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_smoke.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_sweep.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_tta.py +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tools/attr_tagger/README.md +0 -0
- {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tools/attr_tagger/tag.py +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
name: prerelease
|
|
2
|
+
|
|
3
|
+
# Publish a pre-release of any branch to PyPI, to try a change in another project before the final release.
|
|
4
|
+
#
|
|
5
|
+
# 1. On the branch, set a PEP 440 pre-release version in pyproject.toml: `version = "2.1.0rc1"` (or 2.1.0a1,
|
|
6
|
+
# 2.1.0b1, 2.1.0.dev1) and commit it.
|
|
7
|
+
# 2. Tag that commit with the version and push the tag (the branch too, if you like):
|
|
8
|
+
# git tag v2.1.0rc1 && git push origin v2.1.0rc1
|
|
9
|
+
# Once this file is on main, GitHub -> Actions -> prerelease -> "Run workflow" on a branch works as well
|
|
10
|
+
# (GitHub lists manual workflows from the default branch only; a pushed tag runs the workflow of its own commit).
|
|
11
|
+
# 3. The tests run, a GitHub pre-release vX.Y.ZrcN is cut on that commit and the package goes to PyPI.
|
|
12
|
+
#
|
|
13
|
+
# pip and uv skip pre-releases unless asked, so nothing that depends on `attr-eomt>=...` picks it up by accident:
|
|
14
|
+
# pip install attr-eomt==2.1.0rc1 uv add "attr-eomt==2.1.0rc1" (or --prerelease allow)
|
|
15
|
+
# A version already released is refused (bump rcN for the next try); the final release stays release.yml's job
|
|
16
|
+
# (merge to main with the final version).
|
|
17
|
+
#
|
|
18
|
+
# NOTE: the PyPI trusted publisher (workflow publish.yml, environment pypi) must accept runs from branches other
|
|
19
|
+
# than main: if the `pypi` environment limits its deployment branches, allow these branches (or tags) there.
|
|
20
|
+
|
|
21
|
+
on:
|
|
22
|
+
push:
|
|
23
|
+
tags: ["v*a[0-9]*", "v*b[0-9]*", "v*rc[0-9]*", "v*.dev[0-9]*"]
|
|
24
|
+
workflow_dispatch:
|
|
25
|
+
|
|
26
|
+
permissions:
|
|
27
|
+
contents: read
|
|
28
|
+
|
|
29
|
+
jobs:
|
|
30
|
+
check:
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
outputs:
|
|
33
|
+
version: ${{ steps.v.outputs.version }}
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v5
|
|
36
|
+
- name: Read the version and check it is a new pre-release
|
|
37
|
+
id: v
|
|
38
|
+
env:
|
|
39
|
+
GH_TOKEN: ${{ github.token }}
|
|
40
|
+
run: |
|
|
41
|
+
VERSION=$(grep -m1 -E '^version *= *"' pyproject.toml | sed -E 's/.*"([^"]+)".*/\1/')
|
|
42
|
+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
|
43
|
+
if ! python3 -c "import re, sys; sys.exit(0 if re.search(r'(a|b|rc|\.dev)[0-9]+$', '$VERSION') else 1)"; then
|
|
44
|
+
echo "::error::$VERSION is not a pre-release version (X.Y.ZaN / bN / rcN / .devN); final releases go through release.yml"
|
|
45
|
+
exit 1
|
|
46
|
+
fi
|
|
47
|
+
if [ "$GITHUB_REF_TYPE" = tag ] && [ "$GITHUB_REF_NAME" != "v$VERSION" ]; then
|
|
48
|
+
echo "::error::tag $GITHUB_REF_NAME does not match pyproject.toml's version $VERSION"
|
|
49
|
+
exit 1
|
|
50
|
+
fi
|
|
51
|
+
if gh release view "v$VERSION" >/dev/null 2>&1; then
|
|
52
|
+
echo "::error::v$VERSION is already released; bump the pre-release number"
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
echo "::notice::pre-releasing v$VERSION from ${GITHUB_REF_NAME}"
|
|
56
|
+
|
|
57
|
+
test:
|
|
58
|
+
needs: check
|
|
59
|
+
uses: ./.github/workflows/tests.yml
|
|
60
|
+
|
|
61
|
+
release:
|
|
62
|
+
needs: [check, test]
|
|
63
|
+
runs-on: ubuntu-latest
|
|
64
|
+
permissions:
|
|
65
|
+
contents: write # create the tag + GitHub pre-release
|
|
66
|
+
steps:
|
|
67
|
+
- uses: actions/checkout@v5
|
|
68
|
+
- name: Create the GitHub pre-release
|
|
69
|
+
env:
|
|
70
|
+
GH_TOKEN: ${{ github.token }}
|
|
71
|
+
VERSION: ${{ needs.check.outputs.version }}
|
|
72
|
+
run: |
|
|
73
|
+
# on a tag push the tag exists already and the release is cut on it; on a manual run the tag is created
|
|
74
|
+
gh release create "v$VERSION" \
|
|
75
|
+
--title "v$VERSION" \
|
|
76
|
+
--prerelease \
|
|
77
|
+
--generate-notes \
|
|
78
|
+
--target "$GITHUB_SHA"
|
|
79
|
+
|
|
80
|
+
publish:
|
|
81
|
+
needs: [check, release]
|
|
82
|
+
permissions:
|
|
83
|
+
id-token: write # PyPI Trusted Publishing (OIDC)
|
|
84
|
+
contents: read
|
|
85
|
+
uses: ./.github/workflows/publish.yml
|
|
@@ -8,6 +8,7 @@ name: release
|
|
|
8
8
|
# To ship a new version:
|
|
9
9
|
# 1. In your PR, bump `version = "X.Y.Z"` in pyproject.toml.
|
|
10
10
|
# 2. Merge to main. That's it — this workflow tags vX.Y.Z and publishes.
|
|
11
|
+
# To try a branch first, publish a pre-release of it with prerelease.yml (version X.Y.ZrcN).
|
|
11
12
|
# Pushes that don't change the version are no-ops (the Release already exists).
|
|
12
13
|
#
|
|
13
14
|
# Publishing is delegated to publish.yml via `workflow_call` (not the release event),
|
|
@@ -65,10 +66,12 @@ jobs:
|
|
|
65
66
|
GH_TOKEN: ${{ github.token }}
|
|
66
67
|
VERSION: ${{ needs.check.outputs.version }}
|
|
67
68
|
run: |
|
|
69
|
+
# a pre-release version (aN / bN / rcN / .devN) merged to main is released as a GitHub pre-release
|
|
70
|
+
PRE=$(python3 -c "import re; print('--prerelease' if re.search(r'(a|b|rc|\.dev)[0-9]+$', '$VERSION') else '')")
|
|
68
71
|
gh release create "v$VERSION" \
|
|
69
72
|
--title "v$VERSION" \
|
|
70
73
|
--generate-notes \
|
|
71
|
-
--target "$GITHUB_SHA"
|
|
74
|
+
--target "$GITHUB_SHA" $PRE
|
|
72
75
|
|
|
73
76
|
publish:
|
|
74
77
|
needs: [check, release]
|
|
@@ -20,11 +20,14 @@ weights/
|
|
|
20
20
|
*.pt
|
|
21
21
|
*.pth
|
|
22
22
|
|
|
23
|
-
# Datasets (auto-downloaded)
|
|
23
|
+
# Datasets (auto-downloaded) and their local converters
|
|
24
24
|
datasets/
|
|
25
25
|
/data/coco/
|
|
26
26
|
scripts/sample_images/
|
|
27
27
|
|
|
28
|
+
# Local training: per-dataset train_*.py, their configs/ and converter tests
|
|
29
|
+
local_training_scripts/
|
|
30
|
+
|
|
28
31
|
# Editor / OS
|
|
29
32
|
.idea/
|
|
30
33
|
.vscode/
|