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

get_preprocessing_fn #866

Closed
isayoften opened this issue Mar 26, 2024 · 2 comments
Closed

get_preprocessing_fn #866

isayoften opened this issue Mar 26, 2024 · 2 comments
Labels

Comments

@isayoften
Copy link

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?

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label May 26, 2024
@qubvel
Copy link
Owner

qubvel commented May 26, 2024

Expected to be in range 0..255, always the same

@qubvel qubvel closed this as completed May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants