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.
Files changed (87) hide show
  1. attr_eomt-2.1.0/.github/workflows/prerelease.yml +85 -0
  2. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/.github/workflows/release.yml +4 -1
  3. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/.gitignore +4 -1
  4. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/PKG-INFO +272 -199
  5. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/README.md +271 -198
  6. attr_eomt-2.1.0/configs/xview.yaml +26 -0
  7. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/api.py +47 -12
  8. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/aux_cls.py +59 -0
  9. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/compress.py +1 -2
  10. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/config.py +11 -7
  11. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/data/__init__.py +9 -0
  12. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/data/coco.py +35 -4
  13. attr_eomt-2.1.0/eomt/data/config.py +128 -0
  14. attr_eomt-2.1.0/eomt/data/sets.py +352 -0
  15. attr_eomt-2.1.0/eomt/data/subjects.py +278 -0
  16. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/data/transforms.py +5 -4
  17. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/ema.py +2 -1
  18. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/engine/match.py +49 -19
  19. attr_eomt-2.1.0/eomt/engine/predict.py +411 -0
  20. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/engine/track.py +4 -4
  21. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/engine/train.py +646 -168
  22. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/engine/validate.py +245 -11
  23. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/loss.py +52 -12
  24. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/model.py +200 -4
  25. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/postprocess.py +9 -0
  26. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/reid.py +1 -3
  27. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/serialization.py +14 -0
  28. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/tta.py +3 -4
  29. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/pyproject.toml +1 -1
  30. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/sample_data/README.md +15 -3
  31. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/sample_data/data.yaml +5 -10
  32. attr_eomt-2.1.0/sample_data/run.yaml +55 -0
  33. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/match.py +10 -6
  34. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/predict.py +10 -2
  35. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/train.py +38 -33
  36. attr_eomt-2.1.0/scripts/train_multiview.py +47 -0
  37. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/site/index.html +2 -2
  38. attr_eomt-2.1.0/tests/test_hires.py +70 -0
  39. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_regression_attr.py +25 -23
  40. attr_eomt-2.1.0/tests/test_run_config.py +102 -0
  41. attr_eomt-2.1.0/tests/test_subjects.py +242 -0
  42. attr_eomt-2.1.0/tests/test_xview.py +415 -0
  43. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/uv.lock +1 -1
  44. attr_eomt-1.2.1/eomt/data/config.py +0 -83
  45. attr_eomt-1.2.1/eomt/engine/predict.py +0 -242
  46. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/.github/workflows/pages.yml +0 -0
  47. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/.github/workflows/publish.yml +0 -0
  48. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/.github/workflows/tests.yml +0 -0
  49. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/LICENSE +0 -0
  50. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/configs/coco.yaml +0 -0
  51. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/docs/assets/00-hero-banner.png +0 -0
  52. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/docs/assets/00-hero-banner.svg +0 -0
  53. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/docs/examples/billie_eilish.jpg +0 -0
  54. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/docs/examples/rosalia.jpg +0 -0
  55. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/docs/examples/sample.jpg +0 -0
  56. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/docs/examples/taylor_swift.jpg +0 -0
  57. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/__init__.py +0 -0
  58. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/box_loss.py +0 -0
  59. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/data/download.py +0 -0
  60. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/device.py +0 -0
  61. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/engine/__init__.py +0 -0
  62. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/engine/distributed.py +0 -0
  63. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/plotting.py +0 -0
  64. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/preprocess.py +0 -0
  65. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/eomt/visualize.py +0 -0
  66. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/sample_data/annotations/instances_train.json +0 -0
  67. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/sample_data/annotations/instances_val.json +0 -0
  68. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/sample_data/images/train/.gitkeep +0 -0
  69. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/sample_data/images/val/.gitkeep +0 -0
  70. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/info.py +0 -0
  71. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/push_to_hub.py +0 -0
  72. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/track.py +0 -0
  73. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/train_detect_coco.sh +0 -0
  74. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/scripts/val.py +0 -0
  75. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_api.py +0 -0
  76. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_architecture.py +0 -0
  77. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_augment.py +0 -0
  78. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_compress.py +0 -0
  79. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_ddp.py +0 -0
  80. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_parity.py +0 -0
  81. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_recipe.py +0 -0
  82. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_reid.py +0 -0
  83. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_smoke.py +0 -0
  84. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_sweep.py +0 -0
  85. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tests/test_tta.py +0 -0
  86. {attr_eomt-1.2.1 → attr_eomt-2.1.0}/tools/attr_tagger/README.md +0 -0
  87. {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/