Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

get_preprocessing_fn input range #867

Unanswered
isayoften asked this question in Q&A
Discussion options

preprocess_input = get_preprocessing_fn('resnet18', pretrained='imagenet')
...
img = preprocess_input(img)

What range of pixels should i put there? [0, 1] or [0,255]. Does it depends on specific preprocessing function? Or it's always the same rule?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.