Commit Graph

2543 Commits

Author SHA1 Message Date
Zhongbing-Chen
3bafc5c344 exchange the order of replacement (#893) 2024-07-01 20:49:08 +08:00
liuyhwangyh
6995662f38 shorten check model timeout and snapshot_download file patter folder/ to folder/* (#896)
Co-authored-by: mulin.lyh <mulin.lyh@taobao.com>
2024-07-01 15:52:16 +08:00
zhyncs
5b8e1e971c fix ignore_file_pattern (#886)
* fix ignore_file_pattern

---------

Co-authored-by: root <root@kunkun>
2024-07-01 14:31:39 +08:00
liuyhwangyh
ff77845772 add command line usage, optimize command line log, optimize packaging… (#888)
* add command line usage, optimize command line log, optimize packaging version compatible

* Update command.md

* fix logging dup

* Refactor install dependencies (#889)

* refactor install dependencies, default only depencies of hub and datasets

* move pandas import to function

* update hub deps

* test

* remove generate ast file

* remove gast dependency

* replace gast with ast

* add dependency version

* remove lap for compile error

* fix comments issue

* add install ollama

---------

Co-authored-by: mulin.lyh <mulin.lyh@taobao.com>

---------

Co-authored-by: mulin.lyh <mulin.lyh@taobao.com>
2024-06-30 20:15:03 +08:00
Firmament-cyou
8cdbeec3f6 Support swift model inference for llm pipeline (#880)
* Support swift model inference for llm pipeline

* fix bug

* Add 'swfit' llm_framework and fix stream bug

* For pass the unittest run action
2024-06-30 19:43:13 +08:00
yfchenmodelscope
f65f45959d Add Eres2netv2ep4 (#892)
* add eres2netv2ep4
2024-06-27 21:09:51 +08:00
wenmeng zhou
5d00b7c304 Merge pull request #876 from modelscope/release/1.15
Release/1.15
2024-06-06 18:01:22 +08:00
mulin.lyh
f34817e95d modify version merge master 2024-06-06 16:23:19 +08:00
wenmeng zhou
894bc90d96 remove assets and download from oss when running app (#875) 2024-06-05 21:18:21 +08:00
mulin.lyh
909e54fa33 modify build script 2024-06-05 19:08:46 +08:00
mulin.lyh
339ebab9dd fix download retry bug, add get_cache_dir to hut/util v1.15.0 2024-06-04 16:18:52 +08:00
mulin.lyh
7b18f99d03 release to 06.05 2024-06-03 10:09:07 +08:00
mulin.lyh
4a22b05891 restore http_get_file interface 2024-05-28 15:09:05 +08:00
mulin.lyh
e2d8a6d45f restore TDNN.py 2024-05-28 14:57:05 +08:00
mulin.lyh
8947d69fe2 Merge branch 'master' into release/1.15 2024-05-28 14:55:46 +08:00
liuyhwangyh
17da5e2264 fix error report (#868)
Co-authored-by: mulin.lyh <mulin.lyh@taobao.com>
2024-05-28 14:38:19 +08:00
mulin.lyh
b46c5bc3f7 add TDNN.py and version to 1.15.0 2024-05-25 22:35:29 +08:00
mulin.lyh
f69ddba0bb fix TDNN.py and tdnn.py 2024-05-25 22:34:11 +08:00
liuyhwangyh
f93a184d88 add donwload command line and local_dir parameter (#866)
* add donwload command line and local_dir parameter

Co-authored-by: mulin.lyh <mulin.lyh@taobao.com>
2024-05-25 14:21:55 +08:00
liuyhwangyh
5c470f8941 Download optimize (#862)
* fix #845

Supports resumption of downloads from breakpoints, optimized download progress bar, finer display granularity, better experience under low bandwidth, and added function of downloading specified directories.

* restore push to hub

* fix merge issue

* fix ut issue

---------

Co-authored-by: mulin.lyh <mulin.lyh@taobao.com>
2024-05-24 15:37:43 +08:00
yfchenmodelscope
f9451bfe38 add sdpn and tdnn (#865)
* add sdpn and tdnn
2024-05-24 14:39:16 +08:00
Alpha Hinex
da985ad92d Fix json.decoder.JSONDecodeError when load pipeline_schema.json (#859)
When we use `modelscope server` to serve the model, the comma after last json object in this file will cause the error bellow:

```log
ERROR:    Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 732, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 608, in __aenter__
    await self._router.startup()
  File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 711, in startup
    handler()
  File "/opt/conda/lib/python3.10/site-packages/modelscope/server/core/event_handlers.py", line 37, in startup
    _startup_model(app)
  File "/opt/conda/lib/python3.10/site-packages/modelscope/server/core/event_handlers.py", line 22, in _startup_model
    info['schema'] = get_task_schemas(app.state.pipeline.group_key)
  File "/opt/conda/lib/python3.10/site-packages/modelscope/utils/input_output.py", line 837, in get_task_schemas
    schema = json.load(f)
  File "/opt/conda/lib/python3.10/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/opt/conda/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/opt/conda/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/opt/conda/lib/python3.10/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 3836 column 1 (char 100720)
```
2024-05-24 11:39:37 +08:00
liuyhwangyh
82ee20f447 fix issue #845 (#861)
* fix #845

Co-authored-by: mulin.lyh <mulin.lyh@taobao.com>
2024-05-23 20:34:52 +08:00
wenmeng zhou
88c60f114a remove necessary dependency of transformer (#857)
* remove necessary dependency of transformer

* fix import error

* fix typo
2024-05-15 20:44:17 +08:00
Xingjun.Wang
2f353bdd2a Merge pull request #852 from modelscope/dev/del_print_info
Del print info for dataset_type
2024-05-14 15:20:57 +08:00
xingjun.wang
f9260e2e9d update 2024-05-14 14:44:52 +08:00
wenmeng zhou
9e6986806d update readme with latest model and github trending badage (#851) 2024-05-13 17:19:02 +08:00
Zhicheng Zhang
bedec553c1 merge from release 1.13.3 (#837) 2024-04-22 13:55:31 +08:00
Zhicheng Zhang
3b875e0229 Merge pull request #834 from modelscope/fix/datasets_hf_utils
Fix datasets hf utils
2024-04-21 10:52:57 +08:00
xingjun.wang
09779f1735 set datasets <2.19.0 2024-04-19 19:40:00 +08:00
xingjun.wang
c1c4603cce update 2024-04-18 23:15:39 +08:00
xingjun.wang
7b8e10123b fix dataset hf utils 2024-04-18 23:13:26 +08:00
realWeilai
57791a8cc5 add input output for siamese (#810)
* add siamese input output

---------

Co-authored-by: 凌才 <lingcai.wl@alibaba-inc.com>
2024-04-15 17:00:13 +08:00
yfchenmodelscope
3a0072bef8 add eres2netv2 (#830) 2024-04-15 16:53:53 +08:00
wenmeng.zwm
e33d1acc35 fix lint error 2024-04-11 17:28:19 +08:00
Joey
4dd54bd2fe BUGFIX: TypeError: exceptions must derive from BaseException (#816)
* Updated so it raises errors instead of string

* fix linter error

---------

Co-authored-by: wenmeng zhou <wenmengzhou@gmail.com>
2024-04-11 17:05:45 +08:00
cxcz
45237cb5b0 fix installation in README_zh.md (#821) 2024-04-11 09:31:45 +08:00
pipikk
802f90d2e1 feat: add raft model (#702)
* first version

* fix minor bugs

* add test images

* TorchModel & docstr

* modify pipeline implementation

* minor

* add datasets

* add extractor

* add update

* add augmentor

* add flow_viz

* add frame_utils

* add utils

* add raft_model

* add dense_optical_flow_estimation_pipeline

* add image_utils

* add test_dense_optical_flow_estimation

* test

* update cv/__init__

* [3]update cv/__init__

* update submodule data/test

* correct yapf

* fix bugs

* move test data

* update submodule

* minor

* update submodule

---------

Co-authored-by: kejie <kejie.qkj@alibaba-inc.com>
2024-04-08 15:27:20 +08:00
Xingjun.Wang
a903ec7a89 Merge pull request #811 from modelscope/dev/fix_datasets_load
Fix api get_dataset_file_url
2024-03-26 17:46:01 +08:00
xingjun.wang
21c2e62082 fix get_dataset_file_url 2024-03-26 15:13:25 +08:00
Xingjun.Wang
1a66f069c4 Dataset refactor (#807)
* add main entry in ms_dataset

* update func get_data_patterns import

* modify return_config_only

* modify return_config_only to dataset_info_only

* udpate version for test

* del get_logger(__name__)

* fix py script loading

* fix loading py and without py

* add subset support

* add hf_datasets_util; refine list_repo_tree_ms; fix private datasets loading issue

* update version to rc5

* fix and support preview for dataset_info_only mode

* fix urlencode

* update to rc7

* loading of dataset_infos.json is deprecated; 2. add some ut

* update version

* add escapechar for read_csv and to_csv

* add params: Source=SDK

* add create_dataset func

* overwrite _get_paths_info

* update & version

* update list_repo_tree name

* add get_module_with_script, fix download imports

* fix py script loading issue in dataset_module_factory

* fix create dataset

* update log info in api
2024-03-22 17:30:34 +08:00
liuyhwangyh
9d2c2708ff fix download file with spical name as 'Image+Title.png' (#805)
Co-authored-by: mulin.lyh <mulin.lyh@taobao.com>
2024-03-12 20:55:13 +08:00
wertycn
0ecff264c0 Fix error "modelscope attributeerror: 'dict' object has no attribute 'task_name' " (#800) 2024-03-12 20:34:25 +08:00
tastelikefeet
c350c2446c move doc to classroom (#802) 2024-03-06 21:15:32 +08:00
ccyhxg
9cefe0a37b add ViViT-demo (#796)
add vivit-demo
2024-03-05 14:18:46 +08:00
tison
60d14f1f24 chore: Formal LICENSE content (#799)
The LICENSE text is used AS IS - Need not "customized".
2024-03-05 14:16:30 +08:00
Ranqing
1ade52df17 upload marigold monocular depth estimation core files (#703)
* upload marigold monocular depth estimation core files

* fix lint

* remove unused files.

* update marigold model files

* update marigold core files to fix review comments

* fix lint

* fix lint

* fix lint

* format code

* format code

---------

Co-authored-by: 葭润 <ranqing.rq@alibaba-inc.com>
Co-authored-by: wenmeng zhou <wenmeng.zwm@alibaba-inc.com>
2024-03-05 11:21:29 +08:00
Firmament-cyou
a0fe5947b7 Support stream_generate for LLMPipeline (#768)
* support streaming output for llm_pipeline
* add qwen2 format_messages
2024-03-05 10:05:18 +08:00
Zhe Sheng
f79a5b5924 Features/cv_geomvsnet_multi_view_depth_estimation_general (#790)
* add mvs_depth_estimation model: GeoMVSNet

* file headers

* modify unitest class name

---------

Co-authored-by: shengzhe.sz <shengzhe.sz@alibaba-inc.com>
2024-03-04 19:36:00 +08:00
tastelikefeet
cc3238bef6 fix pre-commit (#794) 2024-03-04 19:26:53 +08:00