Skip to content

Commit

Permalink
dont print errors in map_sample
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishKumar4 committed Sep 11, 2024
1 parent d1b8440 commit 3a37ea6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flaxdiff/data/online_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def map_sample(
"original_width": original_width,
})
except Exception as e:
print(f"Error maping sample {url}", e)
traceback.print_exc()
# print(f"Error maping sample {url}", e)
# traceback.print_exc()
# error_queue.put_nowait({
# "url": url,
# "caption": caption,
Expand Down
1 change: 1 addition & 0 deletions flaxdiff/trainer/simple_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,5 +437,6 @@ def train_loop(current_step, pbar: tqdm.tqdm, train_state, rng_state):
"train/epoch": current_epoch,
}, step=current_step)
print(colored(f"\n\tEpoch {current_epoch} completed. Avg Loss: {avg_loss}, Time: {total_time:.2f}s, Best Loss: {self.best_loss}", 'green'))
print("Training done")
self.save(epochs)
return self.state
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
setup(
name='flaxdiff',
packages=find_packages(),
version='0.1.35.3',
version='0.1.35.4',
description='A versatile and easy to understand Diffusion library',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 3a37ea6

Please sign in to comment.