21 Коммитов

Автор SHA1 Сообщение Дата
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
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
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
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
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
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
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
8eb4fca75e
put clean text back in, correct default image data path (#145) 2023-08-31 13:54:51 +02:00
Inga Ulusoy
9f025094a3
Model name passing for summary, sentiment, ner (#125)
* pass model names in class init

* tests for model name and revision number passing

* add exception tests

* simplified selection logic

---------

Co-authored-by: Petr Andriushchenko <pitandmind@gmail.com>
2023-06-29 13:10:13 +02:00
GwydionJon
ceec46a91c
round sentiment score (#119)
* round sentiment score

* Update test_text.py

increased assert range
2023-06-23 14:09:10 +02:00
Inga Ulusoy
c9422a77ec
cleanup-minor-issues (#91)
* clean up docstrings

* clean up docstrings 2

* temp integration test module

* cleaner text sample to analyse

* remove clean text and spelling corrections

* change ammico exposed interface
2023-06-20 10:31:13 +02:00
GwydionJon
44e5a987b1
Improve documentation (#89)
* updated documentation in cropposts

* updated documentation in display

* updated documentation in faces

* added comments to objects.py

* updated utils.py docs

* updated text.py docs

* improve doc display

* fix doc for display and remove redundant variable

* removed documentation from cropposts.py

* removed unused imports

* get rid of ipywidgets dependency

* remove unused imports, improve type hints

* improve doc in utils

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

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

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-06-14 22:17:20 +02:00
Inga Ulusoy
125c31b7a6
skip summary if translation failed (#86)
* skip summary if translation failed

* restrict bertopic version
2023-06-01 14:02:06 +02:00
Inga Ulusoy
8041a9c3bb update notebooks for documentation 2023-05-25 11:48:06 +02:00
Inga Ulusoy
31aefc368b
fix long text pipeline issues (#82) 2023-05-16 13:37:04 +02:00
GwydionJon
530c8525a8
Switching ipywidgets to dash (#73)
* added dash app instead of ipywidgets

* added pre-commit

* removed ipywidgets function

* added dash to dependencies

* exempted dash server from tests

* put das explorer app in new class

* added variable for img path in tests

* added new explorer class to all notebooks

* added identif class variable

* removed unused argument in test_display

* more cleanup, more text analysis in notebook

* update NER test

* update with more comments and fix dash calls

* update text description multimodal

* update objects description

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-05-05 09:12:38 +02:00
Inga Ulusoy
1839e98107 more cleanup 2023-05-02 12:59:51 +02:00
Petr Andriushchenko
622ba40964
rename misinformation to ammico 2023-04-24 17:03:58 +02:00