Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebe committed Dec 19, 2024
1 parent f799b20 commit 5adebf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def get_conditions(cond_gen, args):
for inputs in tqdm(dataloader):
i+=1
try:
outputs = model.generate(
outputs = cond_gen.model.generate(
pixel_values = inputs['pixel_values'].to('cuda'),
input_ids = inputs['input_ids'].to('cuda'),
attention_mask = inputs['attention_mask'].to('cuda'),
Expand Down

0 comments on commit 5adebf5

Please sign in to comment.