File tree Expand file tree Collapse file tree 9 files changed +66
-14
lines changed Expand file tree Collapse file tree 9 files changed +66
-14
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,55 @@ We present REBUS: a collection of 333 hand-crafted rebuses spanning 13 diverse c
23
23
| CogVLM | 0.9 | 1.6 | 0.0 | 0.0 |
24
24
| QWEN | 0.9 | 1.6 | 0.0 | 0.0 |
25
25
| InstructBLIP | 0.6 | 0.5 | 0.9 | 0.0 |
26
+
27
+ ## Steps to Reproduce
28
+
29
+ 1 . Install [ Python] ( https://www.python.org ) .
30
+
31
+ 1 . Install the [ package installer for Python] ( https://pypi.org/project/pip/ ) (pip).
32
+
33
+ 1 . Install the imported packages:
34
+
35
+ - torch
36
+
37
+ ` pip install torch `
38
+
39
+ - requests
40
+
41
+ ` pip install requests `
42
+
43
+ - PIL
44
+
45
+ ` pip install Pillow `
46
+
47
+ - transformers
48
+
49
+ ` pip install transformers `
50
+
51
+ - openai
52
+
53
+ ` pip install openai `
54
+
55
+ - matplotlib
56
+
57
+ ` pip install matplotlib `
58
+
59
+ - tiktoken
60
+
61
+ ` pip install tiktoken `
62
+
63
+ - transformers_stream_generator
64
+
65
+ ` pip install transformers_stream_generator `
66
+
67
+ - einops
68
+
69
+ ` pip install einops `
70
+
71
+ - torchvision
72
+
73
+ ` pip install tochvision `
74
+
75
+ 1 . Run the scripts in ` eval_scripts/ ` , for example ` blip.py ` :
76
+
77
+ - ` python ./eval_scripts/blip.py `
Original file line number Diff line number Diff line change 7
7
from transformers import Blip2Processor , Blip2ForConditionalGeneration
8
8
9
9
10
- # 1. Load datasaet
10
+ # 1. Load dataset
11
11
12
12
rows = []
13
13
14
- with open ('dataset .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
14
+ with open ('data .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
15
15
csv_reader = csv .reader (file )
16
16
17
17
headers = next (csv_reader )
Original file line number Diff line number Diff line change 5
5
from PIL import Image
6
6
from transformers import LlamaTokenizer , AutoModelForCausalLM
7
7
8
- # 1. Load datasaet
8
+ # 1. Load dataset
9
9
10
10
rows = []
11
11
12
- with open ('dataset .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
12
+ with open ('data .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
13
13
csv_reader = csv .reader (file )
14
14
15
15
headers = next (csv_reader )
Original file line number Diff line number Diff line change 8
8
9
9
rows = []
10
10
11
- with open ('dataset .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
11
+ with open ('data .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
12
12
csv_reader = csv .reader (file )
13
13
14
14
headers = next (csv_reader )
Original file line number Diff line number Diff line change 6
6
7
7
rows = []
8
8
9
- with open ('dataset .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
9
+ with open ('data .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
10
10
csv_reader = csv .reader (file )
11
11
12
12
headers = next (csv_reader )
Original file line number Diff line number Diff line change 7
7
import requests
8
8
9
9
10
- # 1. Load datasaet
10
+ # 1. Load dataset
11
11
12
12
rows = []
13
13
14
- with open ('dataset .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
14
+ with open ('data .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
15
15
csv_reader = csv .reader (file )
16
16
17
17
headers = next (csv_reader )
Original file line number Diff line number Diff line change 6
6
import torch
7
7
from transformers import pipeline
8
8
9
- # 1. Load datasaet
9
+ # 1. Load dataset
10
10
11
11
rows = []
12
12
13
- with open ('dataset .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
13
+ with open ('data .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
14
14
csv_reader = csv .reader (file )
15
15
16
16
headers = next (csv_reader )
Original file line number Diff line number Diff line change 6
6
import torch
7
7
from transformers import pipeline
8
8
9
- # 1. Load datasaet
9
+ # 1. Load dataset
10
10
11
11
rows = []
12
12
13
- with open ('dataset .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
13
+ with open ('data .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
14
14
csv_reader = csv .reader (file )
15
15
16
16
headers = next (csv_reader )
Original file line number Diff line number Diff line change 3
3
4
4
from transformers import AutoModelForCausalLM , AutoTokenizer
5
5
6
- # 1. Load datasaet
6
+ # 1. Load dataset
7
7
8
8
rows = []
9
9
10
- with open ('dataset .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
10
+ with open ('data .csv' , mode = 'r' , encoding = 'utf-8' ) as file :
11
11
csv_reader = csv .reader (file )
12
12
13
13
headers = next (csv_reader )
You can’t perform that action at this time.
0 commit comments