tonic commited on
Commit
3263d5e
β€’
1 Parent(s): 91d8e22
This view is limited to 50 files because it contains too many changes. Β  See raw diff
Files changed (50) hide show
  1. app.py +5 -5
  2. {llava β†’ prometheus}/__init__.py +0 -0
  3. {llava β†’ prometheus}/constants.py +0 -0
  4. {llava β†’ prometheus}/conversation.py +0 -0
  5. {llava β†’ prometheus}/eval/eval_gpt_review.py +0 -0
  6. {llava β†’ prometheus}/eval/eval_gpt_review_bench.py +0 -0
  7. {llava β†’ prometheus}/eval/eval_gpt_review_visual.py +0 -0
  8. {llava β†’ prometheus}/eval/eval_pope.py +0 -0
  9. {llava β†’ prometheus}/eval/eval_science_qa.py +0 -0
  10. {llava β†’ prometheus}/eval/eval_science_qa_gpt4.py +0 -0
  11. {llava β†’ prometheus}/eval/eval_science_qa_gpt4_requery.py +0 -0
  12. {llava β†’ prometheus}/eval/eval_textvqa.py +0 -0
  13. {llava β†’ prometheus}/eval/generate_webpage_data_from_table.py +0 -0
  14. {llava β†’ prometheus}/eval/m4c_evaluator.py +0 -0
  15. {llava β†’ prometheus}/eval/model_qa.py +0 -0
  16. {llava β†’ prometheus}/eval/model_vqa.py +0 -0
  17. {llava β†’ prometheus}/eval/model_vqa_loader.py +0 -0
  18. {llava β†’ prometheus}/eval/model_vqa_mmbench.py +0 -0
  19. {llava β†’ prometheus}/eval/model_vqa_qbench.py +0 -0
  20. {llava β†’ prometheus}/eval/model_vqa_science.py +0 -0
  21. {llava β†’ prometheus}/eval/qa_baseline_gpt35.py +0 -0
  22. {llava β†’ prometheus}/eval/run_llava.py +0 -0
  23. {llava β†’ prometheus}/eval/summarize_gpt_review.py +0 -0
  24. {llava β†’ prometheus}/eval/table/answer/answer_alpaca-13b.jsonl +0 -0
  25. {llava β†’ prometheus}/eval/table/answer/answer_bard.jsonl +0 -0
  26. {llava β†’ prometheus}/eval/table/answer/answer_gpt35.jsonl +0 -0
  27. {llava β†’ prometheus}/eval/table/answer/answer_llama-13b.jsonl +0 -0
  28. {llava β†’ prometheus}/eval/table/answer/answer_vicuna-13b.jsonl +0 -0
  29. {llava β†’ prometheus}/eval/table/caps_boxes_coco2014_val_80.jsonl +0 -0
  30. {llava β†’ prometheus}/eval/table/model.jsonl +0 -0
  31. {llava β†’ prometheus}/eval/table/prompt.jsonl +0 -0
  32. {llava β†’ prometheus}/eval/table/question.jsonl +0 -0
  33. {llava β†’ prometheus}/eval/table/results/test_sqa_llava_13b_v0.json +0 -0
  34. {llava β†’ prometheus}/eval/table/results/test_sqa_llava_lcs_558k_sqa_12e_vicuna_v1_3_13b.json +0 -0
  35. {llava β†’ prometheus}/eval/table/review/review_alpaca-13b_vicuna-13b.jsonl +0 -0
  36. {llava β†’ prometheus}/eval/table/review/review_bard_vicuna-13b.jsonl +0 -0
  37. {llava β†’ prometheus}/eval/table/review/review_gpt35_vicuna-13b.jsonl +0 -0
  38. {llava β†’ prometheus}/eval/table/review/review_llama-13b_vicuna-13b.jsonl +0 -0
  39. {llava β†’ prometheus}/eval/table/reviewer.jsonl +0 -0
  40. {llava β†’ prometheus}/eval/table/rule.json +0 -0
  41. {llava β†’ prometheus}/eval/webpage/figures/alpaca.png +0 -0
  42. {llava β†’ prometheus}/eval/webpage/figures/bard.jpg +0 -0
  43. {llava β†’ prometheus}/eval/webpage/figures/chatgpt.svg +0 -0
  44. {llava β†’ prometheus}/eval/webpage/figures/llama.jpg +0 -0
  45. {llava β†’ prometheus}/eval/webpage/figures/swords_FILL0_wght300_GRAD0_opsz48.svg +0 -0
  46. {llava β†’ prometheus}/eval/webpage/figures/vicuna.jpeg +0 -0
  47. {llava β†’ prometheus}/eval/webpage/index.html +0 -0
  48. {llava β†’ prometheus}/eval/webpage/script.js +0 -0
  49. {llava β†’ prometheus}/eval/webpage/styles.css +0 -0
  50. {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 prometheusvl.constants import IMAGE_TOKEN_INDEX, DEFAULT_IMAGE_TOKEN, DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN
11
- from prometheusvl.conversation import conv_templates, SeparatorStyle
12
- from prometheusvl.model.builder import load_pretrained_model
13
- from prometheusvl.utils import disable_torch_init
14
- from prometheusvl.mm_utils import tokenizer_image_token, get_model_name_from_path, KeywordsStoppingCriteria
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 llava.constants import IMAGE_TOKEN_INDEX
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):