Skip to content

Conversation

@skurovec
Copy link
Contributor

Implements fix by @Any-Winter-4079 referenced in #1016 (comment)

@Vargol
Copy link
Contributor

Vargol commented Oct 13, 2022

Hi,
In the the second forward, has h been checked that it's on the mps device after its been derived from x ?
At work so can't check myself ATM.

@skurovec
Copy link
Contributor Author

From my testing it looks like h inferring device from x:

"beautiful landscape" -s 15 -S 3972197351 -W 2048 -H 1024 -C 7.5 -A k_lms

Devices:  x mps:0 h mps:0
Devices:  x mps:0 h mps:0
Devices:  x mps:0 h mps:0
Devices:  x mps:0 h mps:0
Devices:  x mps:0 h mps:0
Devices:  x mps:0 h mps:0
Devices:  x mps:0 h mps:0
Devices:  x mps:0 h mps:0
Devices:  x mps:0 h mps:0
Devices:  x mps:0 h mps:0
Devices:  x mps:0 h mps:0
Devices:  x cpu h cpu
Devices:  x mps:0 h mps:0
Devices:  x mps:0 h mps:0

@Vargol
Copy link
Contributor

Vargol commented Oct 13, 2022

Okay, should be get h back on the mps as soon as we can (assuming none of the other bits of processing break).
I'm sure it won't make too much difference.

I've also noticed that in #1016 up mention the images are not consistent at smaller sizes which concerns me a little, even though I know technically it should be running the same code. Does the new code get triggered at that size where it wasn't before ?

@skurovec
Copy link
Contributor Author

I have consistent images pre and post patch. But different image than @Any-Winter-4079 with same seed

@skurovec
Copy link
Contributor Author

"beautiful landscape" -s 50 -S 1962347883 -W 512 -H 512 -C 7.5 -A k_lms

development branch
000594 1962347883

branch with fix
000595 1962347883

@skurovec
Copy link
Contributor Author

skurovec commented Oct 13, 2022

@Vargol Any-Winter-4079 just commented, that he copied wrong seed, so images ARE consistent

edit: typo

@Any-Winter-4079
Copy link
Contributor

Any-Winter-4079 commented Oct 13, 2022

Yeah, my bad. It was late and I copied the wrong seed haha

@Vargol I think h infers the device, but we can make it explicit if you want.
h.device.type

mps
mps
mps
mps
mps
mps
mps
mps
mps
mps
cpu <- cpu
mps
mps

Copy link
Contributor

@Any-Winter-4079 Any-Winter-4079 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Any-Winter-4079 Any-Winter-4079 merged commit cac3f5f into invoke-ai:development Oct 13, 2022
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

Successfully merging this pull request may close these issues.

3 participants