Commit Graph

265 Commits

Author SHA1 Message Date
xuangen.hlh
a4930fc320 [to #42322933] Update cv-person-image-cartoon-pipeline to maas lib
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9268865
2022-07-06 07:22:50 +08:00
wenmeng.zwm
274cf6ffa9 [to #42362425] fix audio_requirement and refine quickstart, changelog doc
* make audio requirements optional
 * add changelog for version v0.2
 * add numpy constraint for compatibility with tensorflow1.15
 * update faq
 * fix nlp requiring tensorflow
 * add torchvision to multimodal dependency
 * bump version from 0.2.1 to 0.2.2
 * add warning msg when tensorflow is not installed
 
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9268278
2022-07-05 21:44:33 +08:00
zhangzhicheng.zzc
cf194ef6cd [to #42322933] nlp preprocessor refactor
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9269314

    * init

* token to ids

* add model

* model forward ready

* add intent

* intent preprocessor ready

* intent success

* merge master

* test with model hub

* add flake8

* update

* update

* update

* Merge branch 'master' into nlp/space/gen

* delete file about gen

* init

* fix flake8 bug

* [to #42322933] init

* bug fix

* [to #42322933] init

* update pipeline registry info

* Merge remote-tracking branch 'origin/master' into feat/nli

* [to #42322933] init

* [to #42322933] init

* modify forward

* [to #42322933] init

* generation ready

* init

* Merge branch 'master' into feat/zero_shot_classification

# Conflicts:
#	modelscope/preprocessors/__init__.py

* [to #42322933] bugfix

* [to #42322933] pre commit fix

* fill mask

* registry multi models on model and pipeline

* add tests

* test level >= 0

* local gen ready

* merge with master

* dialog modeling ready

* fix comments: rename and refactor AliceMindMLM; adjust pipeline

* space intent and modeling(generation) are ready

* bug fix

* add dep

* add dep

* support dst data processor

* merge with nlp/space/dst

* merge with master

* Merge remote-tracking branch 'origin' into feat/fill_mask

Conflicts:
	modelscope/models/nlp/__init__.py
	modelscope/pipelines/builder.py
	modelscope/pipelines/outputs.py
	modelscope/preprocessors/nlp.py
	requirements/nlp.txt

* merge with master

* merge with master 2/2

* fix comments

* fix isort for pre-commit check

* allow params pass to pipeline's __call__ method

* Merge remote-tracking branch 'origin/master' into feat/zero_shot_classification

* merge with nli task

* merge with sentiment_classification

* merge with zero_shot_classfication

* merge with fill_mask

* merge with space

* merge with master head

* Merge remote-tracking branch 'origin' into feat/fill_mask

Conflicts:
	modelscope/utils/constant.py

* fix: pipeline module_name from model_type to 'fill_mask' & fix merge bug

* unfiinished change

* fix bug

* unfinished

* unfinished

* revise modelhub dependency

* Merge branch 'feat/nlp_refactor' of http://gitlab.alibaba-inc.com/Ali-MaaS/MaaS-lib into feat/nlp_refactor

* add eval() to pipeline call

* add test level

* ut run passed

* add default args

* tmp

* merge master

* all ut passed

* remove an useless enum

* revert a mis modification

* revert a mis modification

* Merge commit 'ace8af92465f7d772f035aebe98967726655f12c' into feat/nlp

* commit 'ace8af92465f7d772f035aebe98967726655f12c':
  [to #42322933] Add cv-action-recongnition-pipeline to maas lib
  [to #42463204]  support Pil.Image for image_captioning_pipeline
  [to #42670107] restore pydataset test
  [to #42322933] add create if not exist and add(back) create model example         Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9130661
  [to #41474818]fix: fix errors in task name definition

# Conflicts:
#	modelscope/pipelines/builder.py
#	modelscope/utils/constant.py

* Merge branch 'feat/nlp' into feat/nlp_refactor

* feat/nlp:
  [to #42322933] Add cv-action-recongnition-pipeline to maas lib
  [to #42463204]  support Pil.Image for image_captioning_pipeline
  [to #42670107] restore pydataset test
  [to #42322933] add create if not exist and add(back) create model example         Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9130661
  [to #41474818]fix: fix errors in task name definition

# Conflicts:
#	modelscope/pipelines/builder.py

* fix compile bug

* refactor space

* Merge branch 'feat/nlp_refactor' of http://gitlab.alibaba-inc.com/Ali-MaaS/MaaS-lib into feat/nlp_refactor

* Merge remote-tracking branch 'origin' into feat/fill_mask

* fix

* pre-commit lint

* lint file

* lint file

* lint file

* update modelhub dependency

* lint file

* ignore dst_processor temporary

* solve comment: 1. change MaskedLMModelBase to MaskedLanguageModelBase 2. remove a useless import

* recommit

* remove MaskedLanguageModel from __all__

* Merge commit '1a0d4af55a2eee69d89633874890f50eda8f8700' into feat/nlp_refactor

* commit '1a0d4af55a2eee69d89633874890f50eda8f8700':
  [to #42322933] test level check         Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9143809
  [to #42322933] update nlp models name in metainfo         Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9134657

# Conflicts:
#	modelscope/metainfo.py

* update

* revert pipeline params update

* remove zeroshot

* update sequence classfication outpus

* merge with fill mask

* Merge remote-tracking branch 'origin' into feat/fill_mask

* fix

* fix flake8 warning of dst

* Merge remote-tracking branch 'origin/feat/fill_mask' into feat/nlp

* merge with master

* remove useless test.py

* Merge remote-tracking branch 'origin/master' into feat/nlp

* remove unformatted space trainer

* revise based on comment except chinease comment

* skip ci blocking

* translation pipeline

* csanmt model for translation pipeline

* update

* update

* update builder.py

* change Chinese notes of space3.0 into English

* translate chinese comment to english

* add space to metainfo

* update casnmt_translation

* update csanmt transformer

* merge with master

* update csanmt translation

* update lint

* update metainfo.py

* Update translation_pipeline.py

* Update builder.py

* fix: 1. make csanmt derived from Model 2. add kwargs to prevent from call error

* pre-commit check

* temp exclue flake8

* temp ignore translation files

* fix bug

* pre-commit passed

* fixbug

* fixbug

* revert pre commit ignorance

* pre-commit passed

* fix bug

* merge with master

* add missing setting

* merge with master

* add outputs

* modify test level

* modify chinese comment

* remove useless doc

* space outputs normalization

* Merge remote-tracking branch 'origin/master' into nlp/translation

* update translation_pipeline.py

* Merge remote-tracking branch 'origin/master' into feat/nlp

* Merge remote-tracking branch 'origin/master' into nlp/translation

* add new __init__ method

* add new __init__ method

* update output format

* Merge remote-tracking branch 'origin/master' into feat/nlp

* update output format

* merge with master

* merge with nlp/translate

* update the translation comment

* update the translation comment

* Merge branch 'nlp/translation' into feat/nlp

* Merge remote-tracking branch 'origin/master' into feat/nlp

* Merge remote-tracking branch 'origin/master' into feat/nlp

* nlp preprocessor refactor

* add get_model_type in util.hub

* update the default preprocessor args

* update the fill mask preprocessor

* bug typo fixed
2022-07-05 20:40:48 +08:00
yongfei.zyf
f9a2383bfe [to #42322933] fix cv-action-recongnition-pipeline run inference with the cpu
修复识别模型CPU 加载推理问题
        Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9279667
2022-07-05 20:16:10 +08:00
bin.xue
3cbc04c6f6 [to #43003827] update url of aec lib
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9276877

    * update url of aec lib
2022-07-05 19:50:55 +08:00
Yingda Chen
f8c669e144 [to #42322933] add space dialog-state tracking pipeline
code review:https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9227018
2022-07-05 18:20:30 +08:00
mulin.lyh
31b84b3b83 [to #43019862]feat: remove gitlab address
去掉gitlab地址配置
        Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9256404

    * remove gitlab address
2022-07-05 17:28:18 +08:00
mulin.lyh
e7cb20614f [to #43019862]feat: remove gitlab address
去掉gitlab地址配置
        Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9256404

    * remove gitlab address
2022-07-04 20:12:31 +08:00
智丞
1bcdc05fb8 merge with master 2022-07-04 17:34:16 +08:00
ly103369
d74e644aaf [to #42322933] Add cv_r2p1d_video_embedding to maas lib
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9246462
2022-07-04 16:05:52 +08:00
yingda.chen
d78d944246 [to #42322933] support text to image synthesis default model
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9253639
2022-07-04 14:21:22 +08:00
yongfei.zyf
82e222ed14 [to #42322933] Add cv-action-recongnition-pipeline run inference with the cpu
行为识别推理同时支持CPU和GPU
        Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9253438
2022-07-04 14:03:24 +08:00
智丞
86eb56e939 Merge remote-tracking branch 'origin/master' into nlp/space/dst 2022-07-04 13:49:14 +08:00
智丞
154c61fc25 add test cases 2022-07-04 13:48:54 +08:00
yingda.chen
a60d675d25 [to #42322933]formalize test data storage
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9251871
2022-07-04 12:11:12 +08:00
智丞
5002c46a4e merge with master 2022-07-04 10:43:44 +08:00
zhangzhicheng.zzc
e691585e15 [to #42322933]添加nlp translation pipeline
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9198181
2022-07-04 10:28:38 +08:00
智丞
e5f99bc6d0 update requirements/nlp 2022-07-03 10:39:17 +08:00
Yingda Chen
059c8fd248 [to #42322933] do not run imagen on gated for now 2022-07-03 10:36:30 +08:00
智丞
7b3d792943 formating output 2022-07-02 22:42:38 +08:00
智丞
0ca1877cef Merge remote-tracking branch 'origin/master' into nlp/space/dst 2022-07-02 22:02:47 +08:00
智丞
54122b2dab merge with master 2022-07-02 21:58:42 +08:00
xuangen.hlh
62f1e76ff8 [to #42322933] Add cv_imagen_text-to-image-synthesis_tiny to maas lib
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9242667
2022-07-02 15:47:25 +08:00
zhangzhicheng.zzc
5b98cc1513 [to #42322933]新增:nli,sentiment_classification,dialog_intent,dialog_modeling
添加了,nli,sentiment_classification, dialog_intent, dialog_modeling几个pipeline。同时加入了nlp里面sequence classification一些简单的抽象。
去掉了zero_shot_classification
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9159089
2022-07-01 23:13:03 +08:00
yingda.chen
0260b89431 [to #42322933] unified output keys
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9240440
2022-07-01 18:29:34 +08:00
huangjun.hj
31b203acfb * [to #42322933] refine quick_start.md and pipeline.md 2022-07-01 17:35:56 +08:00
wenmeng.zwm
bb57020daa [to #42362425] remove add module to default group
![](https://cn-hangzhou.oss-cdn.aliyun-inc.com/git/force/uploads/comment/29212/25464477278968069/image.png)

Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9229852
2022-07-01 17:27:55 +08:00
wenmeng.zwm
8e51a073a6 [to #42966122] requirements enchanment and self-host repo support
* add self-hosted repo:
* add extra requirements for different field and reduce necessary requirements
* update docker file with so required by audio
* add requirements checker which will be used later when implement lazy import
* remove repeated requirements and replace opencv-python-headless with opencv-python

example usage:
```shell
pip install model_scope[all] -f https://pai-vision-data-hz.oss-cn-zhangjiakou.aliyuncs.com/release/maas/repo.html
pip install model_scope[cv] -f https://pai-vision-data-hz.oss-cn-zhangjiakou.aliyuncs.com/release/maas/repo.html
pip install model_scope[nlp] -f https://pai-vision-data-hz.oss-cn-zhangjiakou.aliyuncs.com/release/maas/repo.html
pip install model_scope[audio] -f https://pai-vision-data-hz.oss-cn-zhangjiakou.aliyuncs.com/release/maas/repo.html
pip install model_scope[multi-modal] -f https://pai-vision-data-hz.oss-cn-zhangjiakou.aliyuncs.com/release/maas/repo.html

```
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9211383
2022-07-01 16:38:06 +08:00
yingda.chen
9c72c06e0b [to #42322933] merge hub api for model and dataset
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9233644
2022-07-01 11:29:33 +08:00
shichen.fsc
40cb1043b8 [to #42322933] add customized keywords setting for KWS
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9200613

    * [Add] add KWS code

    * [Fix] fix kws warning

    * [Add] add ROC for KWS

    * [Update] add some code check

    * [Update] refactor kws code, bug fix

    * [Add] add customized keywords setting for KWS

    * [Add] add data/test/audios for KWS
2022-06-30 22:40:38 +08:00
ly119399
90c5e18183 update requirement 2022-06-30 19:28:33 +08:00
ly119399
9e1c7d54d5 Merge branch 'master' into nlp/space/dst 2022-06-30 19:12:06 +08:00
ly119399
f3146996e8 merge feat nlp 2022-06-30 18:58:54 +08:00
yichang.zyc
12cc394a95 [to #42322933] use gpu when available
ofa/caption 增加feature, 如果有gpu默认使用gpu
        Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9228113
2022-06-30 18:34:20 +08:00
yanheng.wyh
5fc8b3c9ab [to #42322933] upate animal recognition model name 2022-06-30 17:46:31 +08:00
ly119399
d9cedf2632 update dst 2022-06-30 16:34:17 +08:00
ly119399
8f8463467c merge feat nlp 2022-06-30 16:06:18 +08:00
智丞
1307b52699 space outputs normalization 2022-06-30 16:05:09 +08:00
ly119399
82f8d2aefd dst test ready 2022-06-30 15:59:46 +08:00
hemu.zp
a03106172f [to #42322933] Update sofa version 1.0.4.2
更新 sofa 到 1.0.4.2 版本,解决 palm 模型无法并行的 bug
        Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9217921
2022-06-30 15:35:59 +08:00
ly119399
99c013acc3 Merge branch 'feat/nlp' into nlp/space/dst 2022-06-30 15:26:19 +08:00
ly119399
94522aa721 Merge remote-tracking branch 'origin' into nlp/space/dst 2022-06-30 15:24:59 +08:00
ly119399
bcbb4c02e5 merge feat/nlp 2022-06-30 15:19:58 +08:00
智丞
f84fe9bf24 remove useless doc 2022-06-30 15:02:43 +08:00
ly119399
d361c1730b modify chinese comment 2022-06-30 14:51:09 +08:00
ly119399
99772b1acc modify test level 2022-06-30 14:45:41 +08:00
ly119399
88e6766944 add outputs 2022-06-30 14:41:46 +08:00
mulin.lyh
c2ae3de640 [to #42879757 #42887254]fix: Repository initialize lfs after clone, add download times counter
Repository在clone后执行 git lfs install初始化lfs支持,下载技术添加到header里
        Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/9204291

    * [to #42879757 #42887254]fix: Repository initialize lfs after clone, add download times counter
2022-06-30 14:27:53 +08:00
智丞
4a79f63a9d add missing setting 2022-06-30 14:25:44 +08:00
ly119399
433ae05ba8 modify model name 2022-06-30 14:24:56 +08:00