You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the way you added dependencies, they are installed for everyone. This shouldn't be the case. If they're needed for Ascend NPU (are they?) they should only be installed if Ascend NPU is present.
I don't like the added bits of torch.npu.set_device(0) code in multiple places. Can You only do it once, when torch is imported for the first time?
@AUTOMATIC1111 , thanks for you quick response.
I've extracted NPU releated dependency packages into the requirements_npu.txt and these will only be installed in NPU env. torch.npu.set_device(0) is needed because the context couldn't share in different thread, abstracted this as a function now and will remove after it was fixed.
hello, i always get this error with python 3.10.6 when i run [./webui.sh -f --skip-torch-cuda-test --no-half --listen --port 12000], i have no idea how to solve it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR enables users to leverage the Ascend NPU for using features including txt2img, img2img, etc.
#13263
Screenshots/videos:
Verified on NPU, prompt is
panda:Verified on Windows with cpu, prompt is
sitting panda:Checklist: