Closed xirtus closed 1 year ago
NameError Traceback (most recent call last) in 46 try: ---> 47 import open_clip 48 except:
4 frames NameError: name 'TopKLogitsWarper' is not defined
During handling of the above exception, another exception occurred:
NameError Traceback (most recent call last) /content/open_clip/src/open_clip/coca_model.py in 30 31 GENERATION_TYPES = { ---> 32 "top_k": TopKLogitsWarper, 33 "top_p": TopPLogitsWarper, 34 "beam_search": "beam_search"
NameError: name 'TopKLogitsWarper' is not defined
NameError Traceback (most recent call last) in
46 try:
---> 47 import open_clip
48 except:
4 frames NameError: name 'TopKLogitsWarper' is not defined
During handling of the above exception, another exception occurred:
NameError Traceback (most recent call last) /content/open_clip/src/open_clip/coca_model.py in
30
31 GENERATION_TYPES = {
---> 32 "top_k": TopKLogitsWarper,
33 "top_p": TopPLogitsWarper,
34 "beam_search": "beam_search"
NameError: name 'TopKLogitsWarper' is not defined