284 Коммитов

Автор SHA1 Сообщение Дата
Petr Andriushchenko
4e4b7fac75 fix if-else, added clip ViT-L-14=336 model 2023-02-22 14:22:58 +01:00
Inga Ulusoy
779c5227ae changed imports bec of lavis/windows 2023-02-21 22:45:06 +01:00
Inga Ulusoy
2e40179a68 account for new interface in init imports 2023-02-21 21:32:24 +01:00
Petr Andriushchenko
40435a73a1 fix clip models 2023-02-21 12:23:50 +01:00
pre-commit-ci[bot]
b9158d4947 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-02-17 14:17:22 +00:00
Petr Andriushchenko
70866dfc69 Change input format for multimodal search 2023-02-17 15:14:42 +01:00
iulusoy
b709f69d58 Revert "reactivate lavis"
This reverts commit ecdaf9d316e4b08816ba62da5e0482c8ff15b14e.
2023-02-16 04:05:34 -08:00
iulusoy
ecdaf9d316 reactivate lavis 2023-02-16 03:48:16 -08:00
pre-commit-ci[bot]
eb48b6513f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-02-16 09:02:14 +00:00
Petr Andriushchenko
0b140c2245 Merge branch 'add_multimodal_search' into add_image_summary 2023-02-16 10:01:26 +01:00
Petr Andriushchenko
7f7d0d2913 adding multimodal searching py and notebook 2023-02-15 16:23:10 +01:00
iulusoy
f0a96bae86 skip import on windows 2023-02-15 03:31:39 -08:00
iulusoy
bc96aeb06f exclude lavis on windows 2023-02-15 10:52:06 -08:00
Inga Ulusoy
feea895417 use lavis package name in install instead of git 2023-02-14 14:02:59 +01:00
Inga Ulusoy
2732651c83 lavis only for ubuntu 2023-02-14 13:44:07 +01:00
Inga Ulusoy
de7e5cbae5
missing comma after merge 2023-02-14 13:20:57 +01:00
Inga Ulusoy
f787164572
Merge branch 'main' into add_image_summary 2023-02-14 04:10:31 -08:00
iulusoy
d8662b5d72 instrucctions for windows 2023-02-14 02:31:04 -08:00
Inga Ulusoy
a6578cfdf3
Topic analysis (#53)
* add bertopic to requirements

* basic topic modeling

* topic modeling using BERT; bugfix if no text on post

* update for google colab

* Catch connection errors

* replace newline character with space

* move topic analysis into PostprocessText class

* set up dataflow topic analysis

* expose topic model to UI

* tests for class init

* tests for topic analysis

* more tests

* take care of carriage return on windows

* take care of carriage return on windows

* take care of carriage return on windows

* set encoding to ensure windows compatibility

* track encoding error

* more debug

* skip topic analysis debug

* windows fixes
2023-02-13 11:45:24 +01:00
Petr Andriushchenko
388ff19b38 back to 3.9 and remove pycocotools dependance 2023-02-03 14:12:06 +01:00
Petr Andriushchenko
0b197db397 Downgrade Python 2023-02-03 11:45:43 +01:00
Petr Andriushchenko
be5f6698a9 fix_pycocotools 2023-02-03 11:41:23 +01:00
Petr Andriushchenko
2b06dc25cc change pycocotools install method 2023-02-02 14:45:34 +01:00
Petr Andriushchenko
6669fc4e4d change pycocotools install method 2023-02-02 14:32:54 +01:00
Petr Andriushchenko
2367593034 change lavis to salesforce-lavis 2023-02-02 14:27:27 +01:00
Petr Andriushchenko
a7970b5858 return lavis 2023-02-02 14:22:38 +01:00
Petr Andriushchenko
e51ea784df merging 2023-02-02 14:18:13 +01:00
Inga Ulusoy
a2c0bcd66c Merge branch 'add_image_summary' of https://github.com/ssciwr/misinformation into add_image_summary 2023-01-30 12:21:42 +01:00
Inga Ulusoy
38abfa69e9 no lavis for ci test 2023-01-30 12:21:33 +01:00
Inga Ulusoy
ee2208091e
Merge branch 'main' into add_image_summary 2023-01-30 12:06:31 +01:00
Inga Ulusoy
f6a384672e test ci without lavis 2023-01-30 12:01:40 +01:00
Inga Ulusoy
0a017b10ec
version bumps and restrictions (#58)
* fix deepface version

* update actions versions
2023-01-30 12:00:13 +01:00
iulusoy
74b752cfaf update actions version for checkout and python 2023-01-28 23:16:02 +01:00
iulusoy
690a4e4dae pin deepface version to avoid bug with progress bar after update 2023-01-27 21:18:04 +01:00
pre-commit-ci[bot]
be80dea7b3 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-01-27 13:09:51 +00:00
Petr Andriushchenko
372a09454e add image summary notebook 2023-01-27 14:04:54 +01:00
Inga Ulusoy
b0ae2f2c19
update install branch (#51) 2023-01-12 13:42:38 +01:00
Inga Ulusoy
5d033479ce
Set up colab (#50)
* lower python version for google colab

* faces working with colab

* text for colab

* fix dict update bug

* final edits for colab

* update readme with links

* load text models on demand

* update test

* fix typo; more description in readme

* remove optional keys
2023-01-12 12:57:14 +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
Dominic Kempf
c49a85bc65
[skip ci] Github Actions badge (#45)
There has been a backwards-incompatible change to shields.io badges for Github Actions. They now identify workflows by their filename instead of their name field.
2022-12-20 11:23:21 +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
Dominic Kempf
f99d15cf40
Restrict the scope of facial expression recognition by thresholding likelihood (#38)
* Apply thresholding to restrict the scope of facial expression recognition

* fix test dict faces

* remove approx

* do not ignore data in subdirs

* where does test_display come from

* remove face analysis duplication

* imageai sneaked into ci

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2022-12-13 13:15:56 +01:00
Dominic Kempf
ef305ee94c
Fix ID generation for relative paths (#35)
So far, there was implicit assumption on the used paths being absolute.

Co-authored-by: Inga Ulusoy <inga.ulusoy@uni-heidelberg.de>
2022-12-13 11:33:34 +01:00
pre-commit-ci[bot]
81838d0b86
[pre-commit.ci] pre-commit autoupdate (#34)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 22.10.0 → 22.12.0](https://github.com/psf/black/compare/22.10.0...22.12.0)
- [github.com/pycqa/flake8: 5.0.4 → 6.0.0](https://github.com/pycqa/flake8/compare/5.0.4...6.0.0)
- [github.com/s-weigand/flake8-nb: v0.5.0 → v0.5.2](https://github.com/s-weigand/flake8-nb/compare/v0.5.0...v0.5.2)

* fix flake8-nb version

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>
2022-12-13 11:33:20 +01:00
Inga Ulusoy
6e7df1eb9f
fix code smells (#39)
* fix code smells

* circumvent code coverage
2022-10-27 13:35:37 +02: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
xianghe ma
d07c54b096 add crop posts 2022-10-14 01:20:47 +02:00