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

Update README.md #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ News:
- 16/11/2017: nasnet-a-large pretrained model ported by T. Durand and R. Cadene
- 22/07/2017: torchvision pretrained models
- 22/07/2017: momentum in inceptionv4 and inceptionresnetv2 to 0.1
- 17/07/2017: model.input_range attribut
- 17/07/2017: model.input_range attribute
- 17/07/2017: BNInception pretrained on Imagenet

## Summary
Expand Down Expand Up @@ -418,7 +418,7 @@ Once a pretrained model has been loaded, you can use it that way.

#### `model.input_size`

Attribut of type `list` composed of 3 numbers:
Attribute of type `list` composed of 3 numbers:

- number of color channels,
- height of the input image,
Expand All @@ -432,12 +432,12 @@ Example:

#### `model.input_space`

Attribut of type `str` representating the color space of the image. Can be `RGB` or `BGR`.
Attribute of type `str` representating the color space of the image. Can be `RGB` or `BGR`.


#### `model.input_range`

Attribut of type `list` composed of 2 numbers:
Attribute of type `list` composed of 2 numbers:

- min pixel value,
- max pixel value.
Expand All @@ -450,7 +450,7 @@ Example:

#### `model.mean`

Attribut of type `list` composed of 3 numbers which are used to normalize the input image (substract "color-channel-wise").
Attribute of type `list` composed of 3 numbers which are used to normalize the input image (substract "color-channel-wise").

Example:

Expand All @@ -460,7 +460,7 @@ Example:

#### `model.std`

Attribut of type `list` composed of 3 numbers which are used to normalize the input image (divide "color-channel-wise").
Attribute of type `list` composed of 3 numbers which are used to normalize the input image (divide "color-channel-wise").

Example:

Expand Down Expand Up @@ -519,7 +519,7 @@ print(output.size()) # (1,1000)

#### `model.last_linear`

Attribut of type `nn.Linear`. This module is the last one to be called during the forward pass.
Attribute of type `nn.Linear`. This module is the last one to be called during the forward pass.

- Can be replaced by an adapted `nn.Linear` for fine tuning.
- Can be replaced by `pretrained.utils.Identity` for features extraction.
Expand Down