Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasticGNU committed Sep 14, 2023
1 parent fb0b086 commit 72642ff
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions code/train_mvtec.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,12 @@ def main(**args):
iter_every_epoch = 0
for batch, batch_sft in zip(train_iter,train_iter_sft):
iter_every_epoch += 1
if iter_every_epoch % 2 == 0:
agent.train_model(
batch,
current_step=current_step,
pbar=pbar
)
del batch
agent.train_model(
batch,
current_step=current_step,
pbar=pbar
)
del batch

agent.train_model(
batch_sft,
Expand Down

0 comments on commit 72642ff

Please sign in to comment.