Skip to content

Commit

Permalink
use right tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
corystephenson-db committed Aug 27, 2024
1 parent e03fe0c commit 7f97fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diffusion/callbacks/log_diffusion_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def __init__(self,

tokenized_clip = clip_tokenizer(batch,
padding='max_length',
max_length=t5_tokenizer.model_max_length,
max_length=clip_tokenizer.model_max_length,
truncation=True,
return_tensors='pt')
clip_attention_mask = tokenized_clip['attention_mask'].cuda()
Expand Down

0 comments on commit 7f97fd6

Please sign in to comment.