Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated logger format #303

Merged
merged 1 commit into from
Aug 26, 2023
Merged

Updated logger format #303

merged 1 commit into from
Aug 26, 2023

Conversation

vfdev-5
Copy link
Member

@vfdev-5 vfdev-5 commented Aug 26, 2023

Changed logger's format in the training-info.log from

�[32m[ignite]�[0m: Configuration: 
{'seed': 777, 'data_path': './', 'train_batch_size': 512, 'eval_batch_size': 1024, 'num_workers': 4, 'max_epochs': 20, 'use_amp': False, 'debug': False, 'train_epoch_length': None, 'eval_epoch_length': None, 'filename_prefix': 'training', 'n_saved': 2, 'save_every_iters': 1000, 'patience': 3, 'output_dir': PosixPath('logs/20230826-220744-backend-None-lr-0.0001'), 'log_every_iters': 10, 'lr': 0.0001, 'model': 'resnet18', 'backend': None, 'num_iters_per_epoch': None}
�[32m[ignite]�[0m: Engine run starting with max_epochs=20.
�[32m[ignite]�[0m: Engine run starting with max_epochs=1.
�[32m[ignite]�[0m: Epoch[1] Complete. Time taken: 00:00:04.522
�[32m[ignite]�[0m: Engine run complete. Time taken: 00:00:04.672
�[32m[ignite]�[0m: train [1/10]: {'epoch': 1, 'train_loss': 2.417194128036499}
�[32m[ignite]�[0m: train [1/20]: {'epoch': 1, 'train_loss': 2.387004852294922}

to

2023-08-26 22:04:06,500 �[32m[ignite]�[0m INFO: Configuration: 
{'seed': 777, 'data_path': './', 'train_batch_size': 512, 'eval_batch_size': 1024, 'num_workers': 4, 'max_epochs': 20, 'use_amp': False, 'debug': False, 'train_epoch_length': None, 'eval_epoch_length': None, 'filename_prefix': 'training', 'n_saved': 2, 'save_every_iters': 1000, 'patience': 3, 'output_dir': PosixPath('logs/20230826-220341-backend-None-lr-0.0001'), 'log_every_iters': 10, 'lr': 0.0001, 'model': 'resnet18', 'backend': None, 'num_iters_per_epoch': None}
2023-08-26 22:04:09,164 �[32m[ignite]�[0m INFO: Engine run starting with max_epochs=20.
2023-08-26 22:04:09,164 �[32m[ignite]�[0m INFO: Engine run starting with max_epochs=1.
2023-08-26 22:04:19,865 �[32m[ignite]�[0m INFO: Epoch[1] Complete. Time taken: 00:00:10.583
2023-08-26 22:04:19,866 �[32m[ignite]�[0m INFO: Engine run complete. Time taken: 00:00:10.702
2023-08-26 22:04:22,919 �[32m[ignite]�[0m INFO: train [1/10]: {'epoch': 1, 'train_loss': 2.417192220687866}
2023-08-26 22:04:24,589 �[32m[ignite]�[0m INFO: train [1/20]: {'epoch': 1, 'train_loss': 2.3869330883026123}```

@netlify
Copy link

netlify bot commented Aug 26, 2023

Deploy Preview for code-generator ready!

Name Link
🔨 Latest commit 081f052
🔍 Latest deploy log https://app.netlify.com/sites/code-generator/deploys/64ea77df41b3910008c39ee8
😎 Deploy Preview https://deploy-preview-303--code-generator.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@vfdev-5 vfdev-5 merged commit be78e5e into main Aug 26, 2023
20 checks passed
@vfdev-5 vfdev-5 deleted the fix-logger-fmt branch August 26, 2023 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant