Chesscorner commited on
Commit
f228fb0
·
verified ·
1 Parent(s): f63e78d

Update caption.py

Browse files
Files changed (1) hide show
  1. caption.py +1 -1
caption.py CHANGED
@@ -15,7 +15,7 @@ use_fp16 = device.type == "cuda"
15
  if use_fp16:
16
  model.half()
17
 
18
- max_length = 16
19
  num_beams = 4
20
  gen_kwargs = {'max_length': max_length, 'num_beams': num_beams}
21
 
 
15
  if use_fp16:
16
  model.half()
17
 
18
+ max_length = 50
19
  num_beams = 4
20
  gen_kwargs = {'max_length': max_length, 'num_beams': num_beams}
21