37 Коммитов

Автор SHA1 Сообщение Дата
Inga Ulusoy
17846fbe71
Update lavis dependencies (#204) 2024-06-12 20:32:26 +02:00
Inga Ulusoy
dd184904f6
Bump versions release action (#198)
* update versions in workflow

* only with tag

* more ref updates
2024-05-31 12:56:55 +02:00
Inga Ulusoy
ea18277090
update dependabot, use uv install (#192)
* Create dependabot.yml

* use uv
2024-05-31 12:10:53 +02: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
Inga Ulusoy
721bc98f7a
increment version number (#168)
* increment version number

increment version number for automated release with new dependency ammico-lavis

* only upload to testpypi for new release tag

* change codecov token transmission method
2024-01-15 11:59:18 +01:00
Inga Ulusoy
d2921523e0
Create automated release (#165)
* create release workflow

* set event to push only
2023-12-13 10:49:22 +01:00
Petr Andriushchenko
b0a623625f
remove object_detector (#157)
* `Object_Detector` has been removed  from the project

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-10-19 10:43:25 +02:00
Petr Andriushchenko
8118aa4830
Change summary parameter (#153)
* changed `3_non-deterministic summary` to `3_non-deterministic_summary`

* changed cvlib to working fork

* disabled test_display
2023-10-18 23:28:38 +02:00
pre-commit-ci[bot]
5c72f9aae4
[pre-commit.ci] pre-commit autoupdate (#147)
* [pre-commit.ci] pre-commit autoupdate

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

* added fail-fast: false in CI

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
Co-authored-by: Petr Andriushchenko <pitandmind@gmail.com>
2023-09-18 11:45:50 +02:00
Petr Andriushchenko
a520f48b87
Made translation in test_text more flexible (#148)
* fixed text translation test, made it more flexible

* added clearing cache after pytests to not overload ROM in Linux CI
2023-09-18 10:19:39 +02:00
Petr Andriushchenko
187d3804e9
fixing coverage report (#126)
* fixed coverage report
2023-06-27 10:52:34 +02:00
Petr Andriushchenko
8d8ea52287
changed summmary.py logic (#121)
* changed summmary.py logic

* fixing test_summary

* added macos for testing

* fixed_display_test

* fixed docs and exceptions

* added dropout menu for summary

* added new SummaryDetector to AnalysisExplorer

* bug fixing

* code improving

* fixed test_display

* fixed code smells

* reduce tests for macos

* added some tests and exceptions for summary init

* changed CI, runs pytest independently

* exclude test_analysisExplorer from macos in CI

* moved some tests from test_init_summary to test_advanced_init_summary and mark them as long

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-06-27 09:19:01 +02:00
Petr Andriushchenko
8ea7903806
Fixing macos compatibility (#92)
* changed salesforce-lavis to fork with MacOS compatibility (release 1.0.2)

* added macos to CI
2023-06-19 11:05:38 +02:00
Inga Ulusoy
4628692e95
update post cropping notebook (#75) 2023-06-14 19:46:18 +02:00
Inga Ulusoy
1494811fa9
put download nltk corpora back into ci 2023-06-13 09:44:35 +02:00
Inga Ulusoy
afc851d3c6
do not load textblob nltk corpora 2023-06-12 15:18:58 +02:00
Petr Andriushchenko
9bbc8a7c2d
Disabled macos. Skiped summary tests in windows. 2023-06-05 11:56:36 +02:00
Petr Andriushchenko
089608c9fa
Added macos to CI 2023-06-01 16:18:12 +02:00
Petr Andriushchenko
059c059e5d
Added Windows to CI 2023-06-01 15:59:16 +02:00
Inga Ulusoy
5a8658df96
provide codecov token to avoid upload failures (#83) 2023-05-17 09:44:50 +02:00
Petr Andriushchenko
d1f65d016d
editted github docs.yml, Dockerfile and README.md 2023-04-25 11:49:12 +02:00
Petr Andriushchenko
1d31d188dc
change CI and remove some code from utils 2023-04-25 10:05:22 +02:00
Petr Andriushchenko
deb0b17364
disabled long tests in CI 2023-03-31 21:39:58 +02:00
Petr Andriushchenko
5bea42eb4b
fixing ci 2023-03-31 19:08:31 +02:00
Petr Andriushchenko
bbe283e981
change pytest in ci 2023-03-31 18:53:00 +02:00
Petr Andriushchenko
f1aeeabd18
fixed varible name, uncomment test, exluded it from CI, fixed error in multimodal_search 2023-03-31 13:35:04 +02:00
Petr Andriushchenko
a5c43b6488
Test debugging (#62)
* deleted lavis from utils

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

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

* fixed test_objects

* added 'not gcv' to CI

* fixed multimodal search and summary tests

* disable doc build on PR for now

* restrict ipywidgets version to avoid dummycomm error

* limit deepface version

* original repositories for retinaface lavis

* update gcv test results

* update display test outputs

* update test env

* run all tests

* wo xdist to avoid segfault

* remove widgets ref

* skip long-running tests

* skip long

* verbose codecov upload

* refactor summary test 2

* finish summary test refactor

* reduce memory overhead of SummaryDetector

* remove VQA models from self

* remove VQA models from self

* update notebook for changes

* update notebook for changes

* fixed multimodal search tests

* fixed tests in multimodal search after precommit

* run all tests

* update doc notebook for summary changes

* skip long-running multimodal

* exclude blip2 from testing

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-03-30 10:33:05 +02:00
Inga Ulusoy
0ca9366980
update docs and google auth (#63)
* update notebooks and google auth

* update readme and text

* google cred

* update secret name

* add pandocto CI

* pandoc step

* install pandoc

* correct typo
2023-03-23 14:07:30 +01:00
Petr Andriushchenko
2891c8a6ed
add image summary notebook (#57)
* add image summary notebook

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

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

* pin deepface version to avoid bug with progress bar after update

* update actions version for checkout and python

* test ci without lavis

* no lavis for ci test

* merging

* return lavis

* change lavis to salesforce-lavis

* change pycocotools install method

* change pycocotools install method

* fix_pycocotools

* Downgrade Python

* back to 3.9 and remove pycocotools dependance

* instrucctions for windows

* missing comma after merge

* lavis only for ubuntu

* use lavis package name in install instead of git

* adding multimodal searching py and notebook

* exclude lavis on windows

* skip import on windows

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

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

* reactivate lavis

* Revert "reactivate lavis"

This reverts commit ecdaf9d316e4b08816ba62da5e0482c8ff15b14e.

* Change input format for multimodal search

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

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

* fix clip models

* account for new interface in init imports

* changed imports bec of lavis/windows

* fix if-else, added clip ViT-L-14=336 model

* fix code smells

* add model change function to summary

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

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

* fixed new model in summary.py

* fixed summary windget

* moved some function to utils

* fixed imort torch in utils

* added test_summary.py

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

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

* fixed opencv version

* added first test of multimodal_search.py

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

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

* fixed test

* removed windows in CI and added test in multimodal search

* change lavis from dependencies from pip ro git

* fixed blip2 model in test_multimodal_search.py

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

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

* fixed test multimodal search on cpu and gpu machines

* added test, fixed dependencies

* add -vv to pytest command in CI

* added test_multimodal_search tests

* fixed tests in test_multimodal_search.py

* fixed tests in test_summary

* changed CI and fixed test_multimodel search

* fixed ci

* fixed error in test multimodal search, changed ci

* added multimodal search test, added windows CI, added picture in test data

* CI debuging

* fixing tests in CI

* fixing test in CI 2

* fixing CI 3

* fixing CI

* added filtering function

* Brought back all tests after CI fixing

* changed CI one pytest by individual tests

* fixed opencv problem

* fix path for text, adjust result for new gcv

* remove opencv

* fixing cv2 error

* added opencv-contrib, change objects_cvlib

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

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

* fixing tests in CI

* fixing CI testing

* cleanup objects

* fixing codecov in CI

* fixing codecov in CI

* run tests together; install opencv last

* update requirements for opencv dependencies

* moved lavis functions from utils to summary

* Remove lavis from utils.py

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

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

* add missing jupyter

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: iulusoy <inga.ulusoy@uni-heidelberg.de>
2023-03-22 10:28:09 +01:00
Inga Ulusoy
0a017b10ec
version bumps and restrictions (#58)
* fix deepface version

* update actions versions
2023-01-30 12:00:13 +01:00
Inga Ulusoy
54728e02bb
Text cleanup and sentiment analysis (#49)
* update notebook

* comments

* add jupyterlab

* add text analysis capability

* add bool in tests

* add dependencies and spelling test

* add test sentiment

* update black pre-commit dependency for native nb support

* update black version, find better sentiment test

* test analyse_image
2023-01-11 12:58:02 +01:00
Inga Ulusoy
b585097f19
remove obsolete features (#48)
* reduce code smells

* account for transl. version change

* remove print statements

* remove imageai
2022-12-31 22:15:40 +01:00
Inga Ulusoy
4744ed5256
add sphinx documentation files (#47)
* add sphinx doc

* add github pages files

* create docs workflow

* add sphinx requirements

* add napoleon ext

* fix name typo
2022-12-20 19:49:39 +01:00
Inga Ulusoy
25ed5881a1
Text 2 (#42)
* start with translate

* translate and clean - notebook

* spacy model in requirements

* translate in module

* clean in module

* upload coverage only for ubuntu

* update ubuntu version on runner

* update dependencies

* start tests for text

* skip gcv test

* fix age

* more text tests

* more text tests

* add comment

* test translation

* fix numpy version; add reference data for trans

* use utf-8 for windows
2022-12-19 15:03:05 +01:00
Inga Ulusoy
27732c5fab
Tests (#37)
* add py test

* update dependencies and markers

* Update ci.yml

* fix linting

* trying with editable install for cov

* fix code smells

* fix code smells

Co-authored-by: xianghe ma <maxianghe@outlook.com>
2022-10-27 11:17:42 +02:00
Inga Ulusoy
9b3e3796fa
test on win (#33)
* test on win

* fix linter issues
2022-10-17 10:43:42 +02:00
Inga Ulusoy
2dd1a7952f
Create ci.yml (#29)
* Create ci.yml

* include pytest

* Update pyproject.toml

* include pytest-cov

* use approx in pytest

* Update test_faces.py

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

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

* add coverage yaml

* reduce passing grade

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-05 11:25:48 +02:00