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

ONNX #7

Closed
motorist828 opened this issue Apr 10, 2023 · 21 comments
Closed

ONNX #7

motorist828 opened this issue Apr 10, 2023 · 21 comments

Comments

@motorist828
Copy link

Why can't I choose ONNX or Vulkan?
I use vega 56 gpu

Screenshot_43

@ForserX
Copy link
Owner

ForserX commented Apr 10, 2023

Oh. This is the problem of having multiple versions of Python.

U need open (working_dir)\repo in cmd and call:

py -3.10 -m venv onnx.venv
onnx.venv\Scripts\activate
pip install -r "..\requirements_onnx.txt"
pip install ort-nightly-directml==1.15.0.dev20230408001 --extra-index-url=https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/

Or wait next release

@motorist828
Copy link
Author

On the last step I get the error
Screenshot_44

@ForserX
Copy link
Owner

ForserX commented Apr 10, 2023

pip install ort-nightly-directml==1.15.0.dev20230408001 --extra-index-url=https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/

@ForserX
Copy link
Owner

ForserX commented Apr 10, 2023

Sorry, my bad

@motorist828
Copy link
Author

hmm, ONNX is still not available
Is the line "pip install -r "..\requirements_onnx.txt" correct?

i used "pip install -r "requirements_onnx.txt" but not sure if it's correct

Screenshot_45

@ForserX
Copy link
Owner

ForserX commented Apr 10, 2023

Oh... U need use workpath\repo at cmd directory

@motorist828
Copy link
Author

ok i did all the steps for the repo folder but nothing changed
Screenshot_46
Screenshot_47

@ForserX
Copy link
Owner

ForserX commented Apr 10, 2023

Ohh. U have CUDA. Sorry. It was an instruction for the AMD version

py -3.10 -m venv cuda.venv
cuda.venv\Scripts\activate
pip install -r "..\requirements_cuda.txt"

@motorist828
Copy link
Author

motorist828 commented Apr 10, 2023

Screenshot_48
I don't have CUDA, On my system radeon rx vega 56
I don't know why it is displayed in the program

@ForserX
Copy link
Owner

ForserX commented Apr 10, 2023

Oh... Vega don't have "AMD" in GPU name. Okay. I will release a corrected version in an hour or two. I'm sorry for the inconvenience.

ForserX added a commit that referenced this issue Apr 10, 2023
@ForserX
Copy link
Owner

ForserX commented Apr 10, 2023

@motorist828
Copy link
Author

motorist828 commented Apr 10, 2023

I uninstalled the previous version, installed the new one by selecting ONNX during installation
But I am getting this error when I run the generation
Screenshot_51
Screenshot_52

I downloaded the diffusion scripts folder from the repository
now the generation starts but i can see that it only uses the cpu

Screenshot_53

@ForserX
Copy link
Owner

ForserX commented Apr 10, 2023

@motorist828 Monday is a hard day. Fixed the archive.

@motorist828
Copy link
Author

unfortunately it still doesn't work for my GPU
Screenshot_54

@ForserX
Copy link
Owner

ForserX commented Apr 10, 2023

As I see, the generation has passed and there is a picture on the background.

@motorist828
Copy link
Author

Yes, but it didn't use my GPU, msi afterburner graph shows 0% load, video ram was also not used

@ForserX
Copy link
Owner

ForserX commented Apr 10, 2023

image
If he hadn't used it, then you would have generated 5-7 minutes, not 33 seconds.

It's better to just look in the usual Windows task manager.

@motorist828
Copy link
Author

such time because I used 128x128 pixels knowing about this problem

@ForserX
Copy link
Owner

ForserX commented Apr 10, 2023

All right, call in Host wnd

py -install ort-nightly-directml==1.15.0.dev20230408001 --extra-index-url=https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/ --force

After click "Break!" in main form and gen img again

@motorist828
Copy link
Author

Great, now it works
Screenshot_55

@ForserX
Copy link
Owner

ForserX commented Apr 10, 2023

I was glad to help! Good luck in further generations. If you have any more questions, you can use our server on Discord!

@ForserX ForserX closed this as completed Apr 10, 2023
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