From 21231cbefc3f4236b94cc23fde22d7ea91d30631 Mon Sep 17 00:00:00 2001 From: nateraw Date: Thu, 2 Sep 2021 12:47:52 -0600 Subject: [PATCH] :memo: update image-classification README.md --- examples/pytorch/image-classification/README.md | 8 +++++--- .../image-classification/run_image_classification.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/pytorch/image-classification/README.md b/examples/pytorch/image-classification/README.md index e7897e01e1c240..24a0ab22a605d1 100644 --- a/examples/pytorch/image-classification/README.md +++ b/examples/pytorch/image-classification/README.md @@ -16,7 +16,7 @@ limitations under the License. # Image classification examples -The following example showcases how to fine-tune a `ViT` for image-classification using PyTorch. +The following examples showcase how to fine-tune a `ViT` for image-classification using PyTorch. ## Using datasets from 🤗 `datasets` @@ -108,13 +108,15 @@ python run_image_classification.py \ 0. If you haven't already, [sign up](https://huggingface.co/join) for a 🤗 account -1. Make sure you have `git-lfs` installed. +1. Make sure you have `git-lfs` installed and git set up. ```bash $ apt install git-lfs +$ git config --global user.email "you@example.com" +$ git config --global user.name "Your Name" ``` -2. Log in using `huggingface-cli` +2. Log in with your HuggingFace account credentials using `huggingface-cli` ```bash $ huggingface-cli login diff --git a/examples/pytorch/image-classification/run_image_classification.py b/examples/pytorch/image-classification/run_image_classification.py index 9bdad664d51530..529a19da3eabce 100644 --- a/examples/pytorch/image-classification/run_image_classification.py +++ b/examples/pytorch/image-classification/run_image_classification.py @@ -49,7 +49,7 @@ from transformers.utils.versions import require_version -""" Finetuning a 🤗 Transformers model for image classification""" +""" Fine-tuning a 🤗 Transformers model for image classification""" logger = logging.getLogger(__name__)