73 Коммитов

Автор SHA1 Сообщение Дата
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
Petr Andriushchenko
fcd6d19088
fixed errors in documentation (#163)
* fixed errors in documentation

* fixed croppost.py
2023-11-13 16:02:30 +01:00
Petr Andriushchenko
fe1e937f18
Documentation update (#160)
* Changed README.md

* Changed docs notebooks

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-10-30 16:18:07 +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
Petr Andriushchenko
32d1321a1a
fixing the absence of a vqa model (#150)
* fixing the absence of a VQA model
2023-09-26 13:23:49 +02:00
Petr Andriushchenko
8161164e87
added new models from lavis to ammico summary (#138)
* added new models from LAVIS to ammico summary

* added sequential questions for summary in new models

* fixed initializing dict process in all notebooks

* joining old and new models into one notebook
2023-09-18 13:47:45 +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
Inga Ulusoy
a7484e3a9b
wrapper for input/output, one demo notebook (#146) 2023-09-04 06:41:17 +02:00
Inga Ulusoy
8eb4fca75e
put clean text back in, correct default image data path (#145) 2023-08-31 13:54:51 +02:00
GwydionJon
e120c10d9f
Fix dash layout (#143)
* force_rounding_of_all_colors

* update test

* fixed bug in color analysis

* changed color rounding to seperate loop

* updated to new dash layout using dbc

* removed dash server from test

* added dash version to pyproject.toml

* changed something to get codecov to work

* changed something else to get codecov to work..

* added test_right_output_analysis_text

* fix type in dependencies

* removed test_text from display

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-08-31 11:00:30 +02:00
GwydionJon
d98a5d3c0e
force_rounding_of_all_colors (#140)
* force_rounding_of_all_colors

* update test

* fixed bug in color analysis

* changed color rounding to seperate loop
2023-08-16 10:05:48 +02:00
Inga Ulusoy
911a43bfad
check for missing keys (#144)
* check for missing keys

* fix code smells
2023-08-15 13:07:41 +02:00
Inga Ulusoy
e11d4c05f4
Update notebooks and add options in display for text model names (#133)
* updated notebooks for the new interface

---------

Co-authored-by: Petr Andriushchenko <pitandmind@gmail.com>
2023-07-12 09:31:58 +02:00
Petr Andriushchenko
009ea3121f
removed identify from analysis_exlorer (#132) 2023-07-07 16:15:11 +02:00
Petr Andriushchenko
875b5c5e0e
Macos debugging (#127)
* returned object_tests on macOS

* fixed scikit-learn 1.3.0 bug
2023-07-03 16:18:27 +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
2a87bc57fd
Provide err msg empty file location (#120)
* added exception for empty file list

* added batching, randomness and multiple file extensions to find_files

* added more default filetypes to find_files

* 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>

* fixing coverage report (#126)

* fixed coverage report

---------

Co-authored-by: Petr Andriushchenko <pitandmind@gmail.com>
Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-06-28 08:44:44 +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
Inga Ulusoy
75e9f49370
add color table to package data (#124)
* add color table to package data

* added importlib-resources to puproject.toml

---------

Co-authored-by: Petr Andriushchenko <pitandmind@gmail.com>
2023-06-26 13:34:53 +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
GwydionJon
7d650caaef
added settings dropdown to AnalysisExplorer (#115)
* added settings dropdown to AnalysisExplorer

* added a dropdown menu for ColorDetector

* removed identify keyword from notebooks

* added test_init to test_colors

* include colors in AnalysisExplorer

* add kwarg for colors

* pre-selected options for color scheme

* constrain delta_e_method selection to valid options

* fixed tests in test_display

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-06-23 13:03:01 +02:00
GwydionJon
1d9e1338ea
Improve colors expression (#80)
* increased dash width

* added new color_analysis notebook

* added colorgram.py to dependencies

* added first iteration of new color_check

* added new version of color analysis

* added webcolors to dependencies

* added colormath

* switched from colormath to colour-science

* made delta_e algorithm user accessible

* remove obsolete notebook

* update docstrings and type hints

* add color analysis module to API doc

* renamed color_expressions to color_analysis

* renamed test

* updated color analysis notebook to adhere to the same style as other notebooks

* updated test for new df orientation

* refactored color analysis to comply with ammico workflow

* updated color tests to comply with new class structure

* added explanation to colors_analysis notebook

* added class doc string

* updated analysis explorer test to include empty image keyword as dash observer

* fix typo and names, docstring and import

* update doc and notebook explanation

* add project url for pypi

---------

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2023-06-22 13:58:49 +02:00
Petr Andriushchenko
aedd166d7e
moved notebooks folder to ammico (#95) 2023-06-20 10:31:43 +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
4628692e95
update post cropping notebook (#75) 2023-06-14 19:46:18 +02:00
Petr Andriushchenko
031b00e250
turn off the test_text_summary on Windows 2023-06-12 16:03:31 +02:00
Petr Andriushchenko
c34958ec1f
turn on the test_text_summary on Windows 2023-06-12 15:44:12 +02:00
Petr Andriushchenko
e27bb7074a
mark test_PostprocessText as win_skip 2023-06-12 14:54:53 +02:00