Skip to content

Commit

Permalink
edit: model.py
Browse files Browse the repository at this point in the history
modify clip tokenizer in function generate_images
  • Loading branch information
shawnhyeonsoo authored Dec 24, 2021
1 parent 1e9c8c2 commit dcaf9f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def generate_images(
if exists(clip):
from transformers import AutoTokenizer

clip_tokenizer = AutoTokenizer.from_pretrained("monologg/distilkobert") # clip에 사용된 tokenizer
clip_tokenizer = AutoTokenizer.from_pretrained("klue/roberta-base") # clip에 사용된 tokenizer
input_text = clip_tokenizer(
raw_text,
padding=True,
Expand Down

0 comments on commit dcaf9f7

Please sign in to comment.