Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

preprocessing for cam #38

Open
aguang1201 opened this issue Aug 24, 2018 · 2 comments
Open

preprocessing for cam #38

aguang1201 opened this issue Aug 24, 2018 · 2 comments

Comments

@aguang1201
Copy link

When you do cam preprocessing,the function transform_batch_images is not called.But the result of cam images is right.Why?Did you trained model without the function transform_batch_images?

@dimitree54
Copy link

I also noticed this difference. There is no normalization (with imagenet_mean and imagenet_std values) in cam.py because transform_batch_images is not called. Because of it test.py and cam.py return different predictions for same images. As I understand this normalization is a part of input pipeline during training, so this function should be called in cam.py, too.

@artembelopolsky
Copy link

yes, and the results look quite different when you add the normalization.

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

No branches or pull requests

3 participants