Spaces:
Runtime error
Runtime error
tonic
commited on
Commit
Β·
3263d5e
1
Parent(s):
91d8e22
refactor
Browse filesThis view is limited to 50 files because it contains too many changes. Β
See raw diff
- app.py +5 -5
- {llava β prometheus}/__init__.py +0 -0
- {llava β prometheus}/constants.py +0 -0
- {llava β prometheus}/conversation.py +0 -0
- {llava β prometheus}/eval/eval_gpt_review.py +0 -0
- {llava β prometheus}/eval/eval_gpt_review_bench.py +0 -0
- {llava β prometheus}/eval/eval_gpt_review_visual.py +0 -0
- {llava β prometheus}/eval/eval_pope.py +0 -0
- {llava β prometheus}/eval/eval_science_qa.py +0 -0
- {llava β prometheus}/eval/eval_science_qa_gpt4.py +0 -0
- {llava β prometheus}/eval/eval_science_qa_gpt4_requery.py +0 -0
- {llava β prometheus}/eval/eval_textvqa.py +0 -0
- {llava β prometheus}/eval/generate_webpage_data_from_table.py +0 -0
- {llava β prometheus}/eval/m4c_evaluator.py +0 -0
- {llava β prometheus}/eval/model_qa.py +0 -0
- {llava β prometheus}/eval/model_vqa.py +0 -0
- {llava β prometheus}/eval/model_vqa_loader.py +0 -0
- {llava β prometheus}/eval/model_vqa_mmbench.py +0 -0
- {llava β prometheus}/eval/model_vqa_qbench.py +0 -0
- {llava β prometheus}/eval/model_vqa_science.py +0 -0
- {llava β prometheus}/eval/qa_baseline_gpt35.py +0 -0
- {llava β prometheus}/eval/run_llava.py +0 -0
- {llava β prometheus}/eval/summarize_gpt_review.py +0 -0
- {llava β prometheus}/eval/table/answer/answer_alpaca-13b.jsonl +0 -0
- {llava β prometheus}/eval/table/answer/answer_bard.jsonl +0 -0
- {llava β prometheus}/eval/table/answer/answer_gpt35.jsonl +0 -0
- {llava β prometheus}/eval/table/answer/answer_llama-13b.jsonl +0 -0
- {llava β prometheus}/eval/table/answer/answer_vicuna-13b.jsonl +0 -0
- {llava β prometheus}/eval/table/caps_boxes_coco2014_val_80.jsonl +0 -0
- {llava β prometheus}/eval/table/model.jsonl +0 -0
- {llava β prometheus}/eval/table/prompt.jsonl +0 -0
- {llava β prometheus}/eval/table/question.jsonl +0 -0
- {llava β prometheus}/eval/table/results/test_sqa_llava_13b_v0.json +0 -0
- {llava β prometheus}/eval/table/results/test_sqa_llava_lcs_558k_sqa_12e_vicuna_v1_3_13b.json +0 -0
- {llava β prometheus}/eval/table/review/review_alpaca-13b_vicuna-13b.jsonl +0 -0
- {llava β prometheus}/eval/table/review/review_bard_vicuna-13b.jsonl +0 -0
- {llava β prometheus}/eval/table/review/review_gpt35_vicuna-13b.jsonl +0 -0
- {llava β prometheus}/eval/table/review/review_llama-13b_vicuna-13b.jsonl +0 -0
- {llava β prometheus}/eval/table/reviewer.jsonl +0 -0
- {llava β prometheus}/eval/table/rule.json +0 -0
- {llava β prometheus}/eval/webpage/figures/alpaca.png +0 -0
- {llava β prometheus}/eval/webpage/figures/bard.jpg +0 -0
- {llava β prometheus}/eval/webpage/figures/chatgpt.svg +0 -0
- {llava β prometheus}/eval/webpage/figures/llama.jpg +0 -0
- {llava β prometheus}/eval/webpage/figures/swords_FILL0_wght300_GRAD0_opsz48.svg +0 -0
- {llava β prometheus}/eval/webpage/figures/vicuna.jpeg +0 -0
- {llava β prometheus}/eval/webpage/index.html +0 -0
- {llava β prometheus}/eval/webpage/script.js +0 -0
- {llava β prometheus}/eval/webpage/styles.css +0 -0
- {llava β prometheus}/mm_utils.py +1 -1
app.py
CHANGED
@@ -7,11 +7,11 @@ import json
|
|
7 |
from tqdm import tqdm
|
8 |
import shortuuid
|
9 |
|
10 |
-
from
|
11 |
-
from
|
12 |
-
from
|
13 |
-
from
|
14 |
-
from
|
15 |
|
16 |
from PIL import Image
|
17 |
import math
|
|
|
7 |
from tqdm import tqdm
|
8 |
import shortuuid
|
9 |
|
10 |
+
from prometheus.constants import IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN
|
11 |
+
from prometheus.conversation import conv_templates, SeparatorStyle
|
12 |
+
from prometheus.model.builder import load_pretrained_model
|
13 |
+
from prometheus.utils import disable_torch_init
|
14 |
+
from prometheus.mm_utils import tokenizer_image_token, get_model_name_from_path, KeywordsStoppingCriteria
|
15 |
|
16 |
from PIL import Image
|
17 |
import math
|
{llava β prometheus}/__init__.py
RENAMED
File without changes
|
{llava β prometheus}/constants.py
RENAMED
File without changes
|
{llava β prometheus}/conversation.py
RENAMED
File without changes
|
{llava β prometheus}/eval/eval_gpt_review.py
RENAMED
File without changes
|
{llava β prometheus}/eval/eval_gpt_review_bench.py
RENAMED
File without changes
|
{llava β prometheus}/eval/eval_gpt_review_visual.py
RENAMED
File without changes
|
{llava β prometheus}/eval/eval_pope.py
RENAMED
File without changes
|
{llava β prometheus}/eval/eval_science_qa.py
RENAMED
File without changes
|
{llava β prometheus}/eval/eval_science_qa_gpt4.py
RENAMED
File without changes
|
{llava β prometheus}/eval/eval_science_qa_gpt4_requery.py
RENAMED
File without changes
|
{llava β prometheus}/eval/eval_textvqa.py
RENAMED
File without changes
|
{llava β prometheus}/eval/generate_webpage_data_from_table.py
RENAMED
File without changes
|
{llava β prometheus}/eval/m4c_evaluator.py
RENAMED
File without changes
|
{llava β prometheus}/eval/model_qa.py
RENAMED
File without changes
|
{llava β prometheus}/eval/model_vqa.py
RENAMED
File without changes
|
{llava β prometheus}/eval/model_vqa_loader.py
RENAMED
File without changes
|
{llava β prometheus}/eval/model_vqa_mmbench.py
RENAMED
File without changes
|
{llava β prometheus}/eval/model_vqa_qbench.py
RENAMED
File without changes
|
{llava β prometheus}/eval/model_vqa_science.py
RENAMED
File without changes
|
{llava β prometheus}/eval/qa_baseline_gpt35.py
RENAMED
File without changes
|
{llava β prometheus}/eval/run_llava.py
RENAMED
File without changes
|
{llava β prometheus}/eval/summarize_gpt_review.py
RENAMED
File without changes
|
{llava β prometheus}/eval/table/answer/answer_alpaca-13b.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/answer/answer_bard.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/answer/answer_gpt35.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/answer/answer_llama-13b.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/answer/answer_vicuna-13b.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/caps_boxes_coco2014_val_80.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/model.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/prompt.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/question.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/results/test_sqa_llava_13b_v0.json
RENAMED
File without changes
|
{llava β prometheus}/eval/table/results/test_sqa_llava_lcs_558k_sqa_12e_vicuna_v1_3_13b.json
RENAMED
File without changes
|
{llava β prometheus}/eval/table/review/review_alpaca-13b_vicuna-13b.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/review/review_bard_vicuna-13b.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/review/review_gpt35_vicuna-13b.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/review/review_llama-13b_vicuna-13b.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/reviewer.jsonl
RENAMED
File without changes
|
{llava β prometheus}/eval/table/rule.json
RENAMED
File without changes
|
{llava β prometheus}/eval/webpage/figures/alpaca.png
RENAMED
File without changes
|
{llava β prometheus}/eval/webpage/figures/bard.jpg
RENAMED
File without changes
|
{llava β prometheus}/eval/webpage/figures/chatgpt.svg
RENAMED
File without changes
|
{llava β prometheus}/eval/webpage/figures/llama.jpg
RENAMED
File without changes
|
{llava β prometheus}/eval/webpage/figures/swords_FILL0_wght300_GRAD0_opsz48.svg
RENAMED
File without changes
|
{llava β prometheus}/eval/webpage/figures/vicuna.jpeg
RENAMED
File without changes
|
{llava β prometheus}/eval/webpage/index.html
RENAMED
File without changes
|
{llava β prometheus}/eval/webpage/script.js
RENAMED
File without changes
|
{llava β prometheus}/eval/webpage/styles.css
RENAMED
File without changes
|
{llava β prometheus}/mm_utils.py
RENAMED
@@ -4,7 +4,7 @@ import base64
|
|
4 |
|
5 |
import torch
|
6 |
from transformers import StoppingCriteria
|
7 |
-
from
|
8 |
|
9 |
|
10 |
def load_image_from_base64(image):
|
|
|
4 |
|
5 |
import torch
|
6 |
from transformers import StoppingCriteria
|
7 |
+
from vision.constants import IMAGE_TOKEN_INDEX
|
8 |
|
9 |
|
10 |
def load_image_from_base64(image):
|