ddPn08 / Radiata

Stable diffusion webui based on diffusers.
https://ddpn08.github.io/Radiata/
Apache License 2.0
984 stars 68 forks source link

TypeError: 'type' object is not subscriptable #67

Closed zhangvia closed 1 year ago

zhangvia commented 1 year ago

image i install all dependencies manully,and run the command bash launch.sh --host 0.0.0.0. then this error happens.i have no idea what this error means.the only different thing from the project is i have a tensorrt 8.5.2.2.did i miss some dependencies?

Stax124 commented 1 year ago

You need Python 3.10, this is normal if you are on Python3.8

zhangvia commented 1 year ago

You need Python 3.10, this is normal if you are on Python3.8

my ubuntu has python3.8, how can i create a venv that has python3.10 without reinstalling python on my ubuntu

Stax124 commented 1 year ago

You don't need to reinstall, your 3.8 should stay as default interpretor

This might be helpful: https://computingforgeeks.com/how-to-install-python-on-ubuntu-linux-system/

You will need to call it with /usr/bin/python3.10, not just python3 after you install it (or similar, I am not 100% sure)

zhangvia commented 1 year ago

You don't need to reinstall, your 3.8 should stay as default interpretor

This might be helpful: https://computingforgeeks.com/how-to-install-python-on-ubuntu-linux-system/

You will need to call it with /usr/bin/python3.10, not just python3 after you install it (or similar, I am not 100% sure)

thank you! i'll try it later

zhangvia commented 1 year ago

You don't need to reinstall, your 3.8 should stay as default interpretor

This might be helpful: https://computingforgeeks.com/how-to-install-python-on-ubuntu-linux-system/

You will need to call it with /usr/bin/python3.10, not just python3 after you install it (or similar, I am not 100% sure)

i install the python3.10,and it worked! but when i use the engine generator, i got this error image image in the model dir of engine tab, i use the local model path. because i've downloaded the runway/stable-diffusion-v1-5 already. and i saw the onnx model,it converted the .bin to .onnx successfully.but when it build the tensorrt engine,loading network from onnx model went wrong.and the error info seems like the image size is smaller than the filter,which is definitly wrong.why would this happen.i didn't change any code, can't it process the stable diffusion 1.5?

Stax124 commented 1 year ago

I think that Lsmith had support only for diffuser models, but I might be wrong here. I followed the changes about a month and a half ago, but now I do not have time for it (I am maintaining Volta) - so this is probably as far as I can get you through.

@ddPn08 can you please follow up here?

zhangvia commented 1 year ago

I think that Lsmith had support only for diffuser models, but I might be wrong here. I followed the changes about a month and a half ago, but now I do not have time for it (I am maintaining Volta) - so this is probably as far as I can get you through.

@ddPn08 can you please follow up here?

what did mean diffuser models. i think the runwayml/stable-diffusion-v1-5 did are diffuser models, and i just tried to use the model id compvis/stablediffusion-v1-4 from remote hub, and the same error happen

Stax124 commented 1 year ago

Yeah, that was what I meant, this might be something in the code or configuration. Maybe try running it with Docker and check if it can run there.

zhangvia commented 1 year ago

Yeah, that was what I meant, this might be something in the code or configuration. Maybe try running it with Docker and check if it can run there.

sorry,i've tried the docker.i use cluster to run this project.maybe some configuration of the cluster went wrong,my daemon docker service couldn't start,so i can't use docker now.tomorrow i will comunicate with the maintenance staff of the cluster and try docker again.but i still want to know why this error happen.

ddPn08 commented 1 year ago

Closing this issue as the project has been significantly updated. Please reopen if you still have problems.