Skip to content

Commit

Permalink
add last weight link
Browse files Browse the repository at this point in the history
  • Loading branch information
teowu committed Nov 8, 2023
1 parent b13a02d commit d48b63a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions eval_scripts/mplug_owl_2/eval_image_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,22 @@ def main(args):


image_paths = [
"../datasets/LIVEC/Images/",
"../datasets/AGIQA-3K/database/",
"../datasets/1024x768/",
"../datasets/SPAQ/",
"../datasets/FLIVE_Database/database/",
"../datasets/LIVEC/Images/",
"../datasets/CGIQA-6K/database/",
"../datasets/kadid10k/images/",
]

json_prefix = "../datasets/json/"
jsons = [
json_prefix + "livec.json",
json_prefix + "agi.json",
json_prefix + "koniq.json",
json_prefix + "spaq.json",
json_prefix + "flive.json",
json_prefix + "livec.json",
json_prefix + "cgi.json",
json_prefix + "kadid.json",
]
Expand Down
2 changes: 1 addition & 1 deletion eval_scripts/mplug_owl_2/eval_video_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def main(args):
images = load_video(image_path + filename)
llddata["logit_good"] = 0
llddata["logit_poor"] = 0

for image in images:
image_tensor = image_processor.preprocess(image, return_tensors='pt')['pixel_values'].half().cuda()

Expand Down
11 changes: 4 additions & 7 deletions model_zoo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,23 @@ If your server is facing poor connection to Huggingface, we provide an alternati
#### Step 1: Download Weights


The links are as follows (WIP):
The links are as follows:


_Released_:

- [LLaVA-v1.5-7B (mix)](https://www.modelscope.cn/models/qfuture/llava_v1.5_7b_qinstruct_preview_v0.1), ModelScope-path: `qfuture/llava_v1.5_7b_qinstruct_preview_v0.1`
- [LLaVA-v1.5-13B (mix)](https://www.modelscope.cn/models/qfuture/llava_v1.5_13b_qinstruct_preview_v0.1), ModelScope-path: `qfuture/llava_v1.5_13b_qinstruct_preview_v0.1`
- [mPLUG-Owl-2 (mix)](https://www.modelscope.cn/models/qfuture/mplug_owl_2_qinstruct_preview_v0.1), ModelScope-path: `qfuture/mplug_owl_2_qinstruct_preview_v0.1`


_Coming Soon_:

- InternLM-XComposer-VL (mix)
- [InternLM-XComposer-VL (mix)](https://www.modelscope.cn/models/qfuture/internlm_xcomposer_vl_qinstruct_preview_v0.1), ModelScope-path: `qfuture/internlm_xcomposer_vl_qinstruct_preview_v0.1`

To use them, you need to install `Git LFS` and then clone the repositories directly from ModelScope, under the main directory of Q-Instruct.

```shell
git clone https://www.modelscope.cn/models/qfuture/$MODEL_NAME_qinstruct_preview_v0.1.git
git clone https://www.modelscope.cn/qfuture/$MODEL_NAME_qinstruct_preview_v0.1.git
```


#### Step 2: Redirect the Model Paths to Your Local Directory

After that, modify the `model_path` in [quick start](../README.md#quick-start) to the local path (i.e. `$MODEL_NAME_qinstruct_preview_v0.1`) to smoothly load the weights downloaded from ModelScope.
Expand Down

0 comments on commit d48b63a

Please sign in to comment.