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

Inconsistencies in ADE20K model inference output for the same input image. #52

Open
MartaFdez97 opened this issue Mar 30, 2023 · 3 comments

Comments

@MartaFdez97
Copy link

MartaFdez97 commented Mar 30, 2023

Hello,
I am doing inference with the ade20k model and I am seeing that for the same input, I get a different output. I have saved the data and model variables to be always the same and yet I still have variability. Why does this happen? Also, I have removed the rescale.
My code:

   import pickle

    with open('data.pkl', 'rb') as f:
        data = pickle.load(f)
    with open('model.pkl', 'rb') as f:
        model = pickle.load(f)
    
    # forward the model
    with torch.no_grad():
        result = model(return_loss=False, rescale=False, **data)
    return result
@uyzhang
Copy link
Collaborator

uyzhang commented Mar 31, 2023

There is a random reasoning part in ham_head, which may fluctuate slightly, but it exists.

@MartaFdez97
Copy link
Author

It fluctuates even if the weights are the fixed? I do not get how can It be possible

@uyzhang
Copy link
Collaborator

uyzhang commented Mar 31, 2023

Yes, you can know the detailed Implementation with the code

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