pytorch / pytorch/tutorials

Feedback about Knowledge Distillation Tutorial

Open
#3,927 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9.3k
Forks
4.4k
Avg merge
1d 21h
Merged PRs (30d)
4

Description

There is the following issue on this page: https://docs.pytorch.org/tutorials/beginner/knowledge_distillation_tutorial.html

I noticed a possible inconsistency in the Knowledge Distillation tutorial.

The tutorial states:

"The tensors mean=[0.485, 0.456, 0.406] and std=[0.229, 0.224, 0.225] were already computed, and they represent the mean and standard deviation of each channel in the predefined subset of CIFAR-10 intended to be the training set."

However, these values are identical to the commonly used ImageNet normalization statistics, while the CIFAR-10 training set statistics are typically reported as approximately:

  • Mean: (0.4914, 0.4822, 0.4465)
  • Std: (0.2470, 0.2435, 0.2616)

Could you clarify whether:

  1. the tutorial intentionally uses the ImageNet normalization values, in which case the accompanying explanation should mention that; or
  2. the statistics were actually recomputed for CIFAR-10, in which case I'd be interested in understanding how these values were obtained.

Thanks for the excellent tutorial!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Knowledge Distillation tutorial, especially the CIFAR-10 normalization section and its explanation of the mean and standard deviation. Verify whether the values are ImageNet statistics or were recomputed for CIFAR-10; done means the tutorial accurately explains the source of the values or uses the appropriate statistics.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation, machine-learning
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.