Commit Graph

2825 Commits

Author SHA1 Message Date
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
co63oc
30bae2eafa Fix (#781) 2024-03-04 10:56:11 +08:00
liuyhwangyh
614be60395 remove download interval check (#771)
* remove download interval check

* remove MINIMUM_DOWNLOAD_INTERVAL_SECONDS

---------

Co-authored-by: mulin.lyh <mulin.lyh@taobao.com>
2024-03-04 10:53:10 +08:00
Starsky Wong
2d2d9e4fe9 fix image_portrait_enhancement rgb channel bug (#740)
Co-authored-by: Starsky Wong <wangsunping@rayvision.com>
2024-03-04 10:45:28 +08:00
RainJay
a0fb7e6fd8 fix SeqGPTPipeline input force cuda issue (#738)
tokenizer of SeqGPTPipeline force using cuda, now is depence on model devcie type
2024-03-04 10:44:33 +08:00
liuyhwangyh
f4e01d6228 fix build issue (#786)
* fix build issue

* fix lint issue

---------

Co-authored-by: mulin.lyh <mulin.lyh@taobao.com>
2024-03-04 10:43:48 +08:00
tastelikefeet
c7c902a16d pre-commit passed (#789) 2024-02-29 21:52:42 +08:00
ccyhxg
fd838b5e6a Add files via upload (#788)
SD推理最佳实践,包括秒级生图,lora,controlnet
2024-02-29 21:16:33 +08:00
ccyhxg
021735207f add qwen1.5_doc_search_QA_based_on_langchain.ipynb (#769) 2024-02-23 17:06:24 +08:00
slin000111
8a8d273ec3 fix text_to_video_synthesis_model device (#751)
Co-authored-by: slin000111 <zhaoshilin2015@sina.con>
2024-02-23 17:05:15 +08:00
Qslia
2df76a9304 change output video format from mp4v to mp4 h264 (#757) 2024-02-23 16:32:42 +08:00
liuyhwangyh
5912cf3132 upgrade image build (#773)
* upgrade image build

* add timm upgrade

---------

Co-authored-by: mulin.lyh <mulin.lyh@taobao.com>
2024-02-23 16:24:54 +08:00
yfchenmodelscope
2ecb97ac4f add res2net resnet models (#772)
* add res2net resnet models

* add paper link and model introduction
2024-02-23 16:19:13 +08:00
tastelikefeet
dfe57f9bc9 fix link (#774) 2024-02-23 14:29:16 +08:00
SiuMing
4f2e9d247c To solve the "ImportError: always import a name 'LlamaTokenizer' from 'transformers. Models. Llama" problem (#745)
RuntimeError: Failed to import modelscope.models.nlp.llama2 because of the following error (look up to see its traceback):
*aot imoont mame 'lamalokenizer'from tnansformers.models,llama /e:PVthoPvthn311li site-Dackagesitransformers models llama init.y
2024-02-23 14:03:31 +08:00
heyyxd
158d72bfd2 add self supervised depth completion. (#711)
* add self supervised depth completion.

* update.

* fix the problem of key inconsistency.

* delete args parser.

* rename metrics to test_metrics.
2024-02-22 22:30:48 +08:00
co63oc
07a5bef0ca Fix (#746) 2024-02-21 15:59:37 +08:00
ccyhxg
10e98f166f add SiT_ImageNet_Demo (#770) 2024-02-21 15:46:27 +08:00
Jintao
e168717f36 add awqconfig (#761) 2024-02-21 14:54:48 +08:00