From 27d793cf58926bae1458caff0a20acd512f25952 Mon Sep 17 00:00:00 2001 From: agentmarketbot Date: Thu, 9 Jan 2025 22:14:26 +0000 Subject: [PATCH] agent bot commit --- README.md | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 06ffc303..d0061b49 100644 --- a/README.md +++ b/README.md @@ -6,29 +6,29 @@ PyTorch deep learning project made easy. * [PyTorch Template Project](#pytorch-template-project) - * [Requirements](#requirements) - * [Features](#features) - * [Folder Structure](#folder-structure) - * [Usage](#usage) - * [Config file format](#config-file-format) - * [Using config files](#using-config-files) - * [Resuming from checkpoints](#resuming-from-checkpoints) + * [Requirements](#requirements) + * [Features](#features) + * [Folder Structure](#folder-structure) + * [Usage](#usage) + * [Config file format](#config-file-format) + * [Using config files](#using-config-files) + * [Resuming from checkpoints](#resuming-from-checkpoints) * [Using Multiple GPU](#using-multiple-gpu) - * [Customization](#customization) - * [Custom CLI options](#custom-cli-options) - * [Data Loader](#data-loader) - * [Trainer](#trainer) - * [Model](#model) - * [Loss](#loss) - * [metrics](#metrics) - * [Additional logging](#additional-logging) - * [Validation data](#validation-data) - * [Checkpoints](#checkpoints) + * [Customization](#customization) + * [Custom CLI options](#custom-cli-options) + * [Data Loader](#data-loader) + * [Trainer](#trainer) + * [Model](#model) + * [Loss](#loss) + * [metrics](#metrics) + * [Additional logging](#additional-logging) + * [Validation data](#validation-data) + * [Checkpoints](#checkpoints) * [Tensorboard Visualization](#tensorboard-visualization) - * [Contribution](#contribution) - * [TODOs](#todos) - * [License](#license) - * [Acknowledgements](#acknowledgements) + * [Contribution](#contribution) + * [TODOs](#todos) + * [License](#license) + * [Acknowledgements](#acknowledgements) @@ -145,7 +145,7 @@ Config files are in `.json` format: "verbosity": 2, // 0: quiet, 1: per epoch, 2: full "monitor": "min val_loss" // mode and metric for model performance monitoring. set 'off' to disable. - "early_stop": 10 // number of epochs to wait before early stop. set 0 to disable. + "early_stop": 10 // number of epochs to wait before early stop. set 0 to disable. "tensorboard": true, // enable tensorboard visualization } @@ -227,7 +227,7 @@ which is increased to 256 by command line options. `BaseDataLoader` is an iterator, to iterate through batches: ```python - for batch_idx, (x_batch, y_batch) in data_loader: + for batch_idx, (x_batch, y_batch) in enumerate(data_loader): pass ``` * **Example**