Skip to content

Conversation

@mickr777
Copy link
Contributor

@mickr777 mickr777 commented Jul 19, 2023

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Have you discussed this change with the InvokeAI team?

  • Yes
  • No, because:

Description

Fix for

File "/home/invokeuser/InvokeAI/invokeai/app/services/processor.py", line 70, in __process
   outputs = invocation.invoke(
 File "/home/invokeuser/InvokeAI/invokeai/app/invocations/latent.py", line 660, in invoke
   device=choose_torch_device()
NameError: name 'choose_torch_device' is not defined

when using scale latents node

Related Tickets & Documents

  • Related Issue #
  • Closes #

QA Instructions, Screenshots, Recordings

Added/updated tests?

  • Yes
  • No : please replace this line with details on why tests
    have not been included

[optional] Are there any post deployment tasks we need to perform?

@mickr777
Copy link
Contributor Author

Realised was better to import choose_torch_device from backend.util.devices

@blessedcoolant blessedcoolant merged commit 94787b7 into invoke-ai:main Jul 19, 2023
@mickr777 mickr777 deleted the torchdevice branch July 19, 2023 07:49
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.

2 participants