Spaces:
Runtime error
Runtime error
Update CALTextModel.py
Browse files- CALTextModel.py +2 -0
CALTextModel.py
CHANGED
@@ -10,6 +10,7 @@ import math
|
|
10 |
import copy
|
11 |
import random
|
12 |
import time
|
|
|
13 |
|
14 |
#import data
|
15 |
rng = np.random.RandomState(int(time.time()))
|
@@ -644,6 +645,7 @@ def test_error( images, x_mask):
|
|
644 |
outstr=u''
|
645 |
frames = []
|
646 |
font = ImageFont.truetype("Jameel Noori Nastaleeq.ttf",60)
|
|
|
647 |
while (ind<len(ss)-1):
|
648 |
k=(len(ss)-2)-ind
|
649 |
outstr=outstr+worddicts_r[int(ss[k])]
|
|
|
10 |
import copy
|
11 |
import random
|
12 |
import time
|
13 |
+
import data
|
14 |
|
15 |
#import data
|
16 |
rng = np.random.RandomState(int(time.time()))
|
|
|
645 |
outstr=u''
|
646 |
frames = []
|
647 |
font = ImageFont.truetype("Jameel Noori Nastaleeq.ttf",60)
|
648 |
+
worddicts_r=load_dict_picklefile("vocabulary.pkl")
|
649 |
while (ind<len(ss)-1):
|
650 |
k=(len(ss)-2)-ind
|
651 |
outstr=outstr+worddicts_r[int(ss[k])]
|