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

Expected image dim order and value range? #22

Open
kgrm opened this issue Feb 28, 2021 · 1 comment
Open

Expected image dim order and value range? #22

kgrm opened this issue Feb 28, 2021 · 1 comment

Comments

@kgrm
Copy link

kgrm commented Feb 28, 2021

Hello, from the documentation of the library it is unclear whether the image variants of the loss function (e.g., AdaptiveImageLossFunction) expect images in NCHW or NHWC order. Furthermore, should the input value range be [0, 1] or [0, 255]?

@chenzhekl
Copy link

I guess it doesn't matter. The AdaptiveLossFunction only accepts rank-2 tensors, where the innermost dimension is the batch and the outermost dimension is the feature. All residual images must be flattened before feeding into the loss function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants