102 Коммитов

Автор SHA1 Сообщение Дата
pre-commit-ci[bot]
4a18b1b5a9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-10-27 09:01:38 +00:00
Inga Ulusoy
8e9f2b6d87
Update ammico/notebooks/DemoNotebook_ammico.ipynb
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-27 10:01:08 +01:00
Inga Ulusoy
a65f1e2287
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-27 09:59:03 +01:00
Inga Ulusoy
237c6265fe
test: some small changes to mock model 2025-10-27 09:49:41 +01:00
Inga Ulusoy
731077be7d
test: add mock model for summary testing 2025-10-27 09:42:12 +01:00
Inga Ulusoy
ac6d70a355
Merge branch 'add-summary' of github.com:ssciwr/AMMICO into add-summary 2025-10-24 16:36:41 +02:00
Inga Ulusoy
de8ee83432
refactor: use dictionary mapping for values, check question list strings for None 2025-10-24 16:36:03 +02:00
DimasfromLavoisier
9d382b7b6b update notebook content 2025-10-24 15:34:55 +02:00
Inga Ulusoy
f277e86b29
refactor: remove duplicated close method 2025-10-24 14:37:45 +02:00
Inga Ulusoy
a832142c44
fix: update function calls, remove obsolete stuff 2025-10-24 08:54:38 +02:00
Inga Ulusoy
1f2642f1b4
fix: update function call in notebook to conform with renaming 2025-10-24 08:35:26 +02:00
Inga Ulusoy
8487947f5d
fix: update function call in notebook to conform with renaming 2025-10-23 10:02:09 +02:00
Inga Ulusoy
4a04233536
UI: fix obsolete analyze_test keyword 2025-10-17 14:41:57 +02:00
DimasfromLavoisier
d6e0fbeffe add vqa tests 2025-10-13 15:38:06 +02:00
DimasfromLavoisier
d810dbc366 add base model tests 2025-10-10 17:09:45 +02:00
DimasfromLavoisier
3018800ed4 update test-display 2025-10-10 11:16:24 +02:00
Dmitrii Kapitan
402a379f9c basic integration into display functionality 2025-10-09 15:30:39 +02:00
DimasfromLavoisier
5c7e2c3f64 1st try 2025-09-26 18:23:58 +02:00
DimasfromLavoisier
ece132fe14 optimize validation of analysis type 2025-09-26 17:33:26 +02:00
Inga Ulusoy
d1a4954669
tests: remove analyse_text keyword for text detector 2025-09-26 08:51:09 +02:00
Inga Ulusoy
0f6f9026cd
fix: missing dependency, obsolete keyword, dash maintenance, demo notebook for new summary 2025-09-25 12:45:14 +02:00
Dmitrii Kapitan
2326aef4b5 Add example notebook and small fixes 2025-09-22 16:47:23 +02:00
DimasfromLavoisier
d20c4d68e4 vqa 2025-09-12 17:50:04 +02:00
DimasfromLavoisier
bd63be4693 add Model class 2025-09-12 17:42:25 +02:00
Inga Ulusoy
c28937b373
Remove outdated functionality (#262)
* maintain: remove text analysis with transformers and topic analysis

* maintain: remove text analysis from display function

* maintain: remove summary module (VQA)

* maintain: remove summary module (VQA)

* maintain: remove cropposts, update pyproject.toml

* maintain: removed obsolete functionality

* maintain: update CI workflow

* maintain: run all tests together in CI, remove version restrictions

* maintain: fix tf version for deepface/retinaface restrictions

* mainatin: remove more obsolete files, restructure pyproject.toml

* fix: do not run gcv tests on CI

* CI: test compatibility with Python versions

* maintain+bug: fix python version due to deepface, fix deepface memory leak

* maintain: switch to ruff

* fix: correct remaining ruff issues, is_interactive probably obsolete..?

* CI: bump actions and python versions, run checks on all os

* maintain&fix: blis do not compile from source, use uv for installs, update dockerfile

* fix: uv install system-wide

* fix: try with only pip to force blis binary install

* fix: try now with mixed pip and uv for better performance while preserving blis binary

* fix: revert to pip since uv installs different numpy version, unfortunately

* fix: other python version
2025-09-12 14:26:38 +02:00
Inga Ulusoy
efe1851fea
Find multiple source (#251)
* feat: create space in demo notebook for multiple image search

* added multiple reference images, re #241. Separated notebooks for #248

* Update ci.yml

added nbval test for notebook

* Update ci.yml

more descriptive test name

* Update pyproject.toml

added typing_extensions

* Update pyproject.toml

typo

* Update pyproject.toml

fixing dependencies, hopefully

* Update ci.yml

fixing dependencies hopefully part 2

* Update ci.yml

typo (again)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update DemoNotebook_ammico.ipynb

cleanup

* Update DemoNotebook_ammico_MultimodalSearch.ipynb

added df to save

* Update DemoNotebook_ammico_MultimodalSearch.ipynb

typo

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update notebook to include proper paths for sample data

* update paths in demo notebook

---------

Co-authored-by: ChristineSchulz <aq354@uni-heidelberg.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-04-10 22:18:39 +02:00
Inga Ulusoy
14ae93063e
keep original text length (#247)
* keep original text length, skip analysis if not translated

* bump version, remove debug
2025-02-19 11:23:27 +01:00
Inga Ulusoy
3cf1b5466a
improve handling of exceptions for googletrans (#244)
* truncate text to max length for googletrans, skip translation in case of error

* restrict peft version for backwards compatibility with old transformers required by lavis
2025-02-05 13:52:25 +01:00
Inga Ulusoy
e12929a909
manage occurence of full stops in a better way (#229)
* manage occurence of full stops in a better way

* bump version

* cleanup
2024-12-02 15:01:50 +01:00
Inga Ulusoy
ab484abbd9
fix typo on image and notebook (#226)
* fix typo on image and notebook

* remove full stop after google colab button
2024-11-29 15:11:40 +01:00
Inga Ulusoy
4add286d7d merge 2024-11-29 08:27:01 +01:00
Inga Ulusoy
8057153e60
fix missing whitespace for links and names (#225)
* fix missing whitespace for links and names

* remove comments in notebook

* cleanup
2024-11-22 20:03:00 +01:00
Inga Ulusoy
ac560ded38 test 2024-11-22 10:43:39 +01:00
Inga Ulusoy
f3af3de7dc
re-put runtime requirements (#213) 2024-10-09 14:31:33 +02:00
Inga Ulusoy
65531c6204
minor changes for revision 2 (#212)
* fix typos

* add buttons for google colab everywhere

* update readme, separate out FAQ

* add privacy disclosure statement

* do not install using uv

* update docs notebook

* explicit install of libopenblas

* explicit install of libopenblas

* explicit install of libopenblas

* try to get scipy installed using uv

* use ubuntu 24.04

* go back to pip

* try with scipy only

* try with a few others

* use hatchling

* wording changes, install all requirements

* fix offending spacy version

* run all tests

* include faq in documentation, fix link

* make readme links point to documentation

* load model safely

* correct edit on GH link and bump version

* remove comments
2024-10-08 10:00:31 +02:00
Inga Ulusoy
174054f465
revision 2 (#210)
* fix typos

* add buttons for google colab everywhere

* update readme, separate out FAQ

* add privacy disclosure statement

* do not install using uv

* update docs notebook

* explicit install of libopenblas

* explicit install of libopenblas

* explicit install of libopenblas

* try to get scipy installed using uv

* use ubuntu 24.04

* go back to pip

* try with scipy only

* try with a few others

* use hatchling

* wording changes, install all requirements

* fix offending spacy version

* run all tests

* include faq in documentation, fix link
2024-10-07 15:02:32 +02:00
Inga Ulusoy
8db4a399df
update thresholds in notebook and empty actions list (#205) 2024-06-17 12:56:47 +02:00
dependabot[bot]
42b6732308
Update deepface requirement from <=0.0.75 to <=0.0.92 (#203)
* Update deepface requirement from <=0.0.75 to <=0.0.92

---
updated-dependencies:
- dependency-name: deepface
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* more extensive testing for faces, adapt changes from deepface

* include gender threshold in display and notebook

* update documentation

* increase detection threshold for tests

* update handling of missing dict keys

* update notebook

* make sure text was found on image before analysing

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2024-06-13 14:34:14 +02:00
Inga Ulusoy
17846fbe71
Update lavis dependencies (#204) 2024-06-12 20:32:26 +02:00
Inga Ulusoy
894ad0938b
add disclaimer checks and tests (#202)
* add disclaimer checks and tests

* add changes to display

* webcolors library update changes

* disclosure instead of disclaimer

* change interface to disclosure

* update demo notebook

* improve explorer display of disclosure env variable, update docs notebook
2024-06-12 09:49:35 +02:00
Inga Ulusoy
4ac760e690
Add text analyzer to skip text extraction from image (#199)
* read in text from csv

* add tests for csv reading

* run textanalyzer in demo notebook

* add text analyser in doc and demo

* improve init TextDetector testing

* more init tests

* add csv encoding keyword

* add utf16-csv file

* skip csv reading on windows
2024-06-05 09:28:28 +02:00
Inga Ulusoy
38498e3e10
use simpler image for testing emotion detector (#190)
* use simpler image for testing

* include age in faces test again

* fix typo

* try with newer tensorflow version

* remove testing for age again

* try with tensorflow newer versions only for breaking change in transformers

* force transformers to use pytorch
2024-05-31 11:43:26 +02:00
Inga Ulusoy
922a64f991
more changes to doc (#188)
* more changes to doc

* write output after each detector
2024-02-23 12:08:34 +01:00
Inga Ulusoy
8752398c5d
Update documentation (#185)
* update documentation

* remove obsolete notebooks

* comment on data usage and internet access
2024-02-19 10:20:21 +01:00
Petr Andriushchenko
bec845e774
Minor fixing (#172)
* fixing DemoNotebook

* fixing DemoNotebook2

* rearrange the code and text

* continiue changing demo notebook

* continiue changing demo notebook2

* fixing bug on a100 in google colab

* change order of tests and do not test for age in faces

* add screenshots for gcv api

* instructions for google cloud vision API

* link instructions in readme

* add missing image

* trim whitespace

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2024-02-16 09:05:39 +01:00
pre-commit-ci[bot]
fcb2d55740
[pre-commit.ci] pre-commit autoupdate (#184)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/kynan/nbstripout: 0.6.1 → 0.7.1](https://github.com/kynan/nbstripout/compare/0.6.1...0.7.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-15 13:14:24 +01:00
pre-commit-ci[bot]
b4aae9321c
[pre-commit.ci] pre-commit autoupdate (#176)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-31 14:17:29 +01:00
Inga Ulusoy
f128fa4754
check threshold for emotion and race lies in btw 0 and 100 (#175)
* check threshold for emotion and race liezs in btw 0 and 100

* Update release.yml

* correct order of calling args in test display
2024-01-16 11:13:22 +01:00
Petr Andriushchenko
844ade70e2
fixing google colab (#169)
* removed some pre-installed conflicting packages in Google Colab.
2023-12-13 23:10:12 +01:00
GwydionJon
0da40e018e
removed dash render-json (#167)
removed dash render-json
2023-12-06 13:38:37 +01:00