-
Notifications
You must be signed in to change notification settings - Fork 211
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
jina flow --uses flow.tmp.yml made a lot of errors #90
Comments
@mariepop13 Please give me the output of these two commands: |
paperspace@pspkgwgm9:~$ python3 --version paperspace@pspkgwgm9:~$ cat flow.tmp.yml |
OK, so |
I had to reinstall jina by pip. Still the same error as first pic than I tried again cat flow.tmp.yml paperspace@pspkgwgm9:~/dalle-flow$ cat flow.tmp.yml
|
OK, you are indeed running it outside a virtual environment. Do this if you're trying to run stable-diffusion, from the sudo apt-get install python3 python3-pip
sudo pip3 install virtualenv
python3 -m virtualenv env
source env/bin/activate && cd -
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116
pip install numpy tqdm pytorch_lightning einops numpy omegaconf
pip install https://github.com/crowsonkb/k-diffusion/archive/master.zip
cd latent-diffusion && pip install -e . && cd -
cd stable-diffusion && pip install -e . && cd -
cd SwinIR && pip install -e . && cd -
cd glid-3-xl && pip install -e . && cd - Run jina with stable diffusion by: cd dalle-flow
python flow_parser.py --enable-stable-diffusion --disable-dalle-mega --disable-glid3xl
jina flow --uses flow.tmp.yml |
Hi, again (env) paperspace@pspkgwgm9:~/dalle-flow/dalle/dalle-flow$ python flow_parser.py --enable-stable-diffusion --disable-dalle-mega --disable-glid3xl Or I have to go in ~/dalle-flow/? I was trying to install the discord-bot too. |
Can you confirm that your filesystem looks like this?
|
Sure I had to download from (git clone https://github.com/CompVis/latent-diffusio324n.git So here what I have: |
(env) paperspace@pspkgwgm9:~/dalle-flow$ ls versus (env) paperspace@pspkgwgm9:~/dalle-flow/dalle/dalle-flow$ ls |
Ok, it's best to start over. Running these commands will fix your installation and put everything into the ~/dalle folder. Copy the weights somewhere else if you have already downloaded them. rm -rf ~/dalle-flow/
cd ~
mkdir dalle && cd dalle
git clone https://github.com/jina-ai/dalle-flow.git
git clone https://github.com/jina-ai/SwinIR.git
git clone https://github.com/CompVis/latent-diffusio324n.git
git clone https://github.com/StableDiffusion/latent-diffusion.git
git clone https://github.com/jina-ai/glid-3-xl.git
cd ~/dalle/dalle-flow
python3 -m virtualenv env
source env/bin/activate && cd -
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116
pip install numpy tqdm pytorch_lightning einops numpy omegaconf
pip install https://github.com/crowsonkb/k-diffusion/archive/master.zip
cd latent-diffusion && pip install -e . && cd -
cd stable-diffusion && pip install -e . && cd -
cd SwinIR && pip install -e . && cd -
cd glid-3-xl && pip install -e . && cd - Then put the weights into Finally, cd ~/dalle/dalle-flow
python flow_parser.py --enable-stable-diffusion --disable-dalle-mega --disable-glid3xl
jina flow --uses flow.tmp.yml |
I am so sorry... doesnt work.
And not can it be the problem??? otherwise
|
Are you in the virtual environment where you installed everything? It must be loaded with cd ~/dalle/dalle-flow
source env/bin/activate
python flow_parser.py --enable-stable-diffusion --disable-dalle-mega --disable-glid3xl
jina flow --uses flow.tmp.yml |
I do. Don't know if it can help.
|
|
Sorry lol, it's been a long day. |
lol, thanks to make me feel more guilty
|
No, it's not you! OK, you have all the right folders. Run these commands while inside the virtualenv (terminal prefixed with cd ~/dalle/SwinIR
pip install -e .
cd ~/dalle/stable-diffusion
pip install -e .
pip install https://github.com/crowsonkb/k-diffusion/archive/master.zip Then run jina again with cd ~/dalle/dalle-flow
python flow_parser.py --enable-stable-diffusion --disable-dalle-mega --disable-glid3xl
jina flow --uses flow.tmp.yml Did that work? |
Spoiler alert: no... |
At this point I am unsure what is the issue. However, would you like to try installing If you follow that you can just run a docker image instead of having to install |
Ya sure thanks again for your time, I will update you with the results if you want. |
Yes, it's always good to know if something works or does not. Unfortunately I am not sure why installing jina/dalle-flow normally is failing. |
@mariepop13 I ran into similer issues on ubuntu 22.04 In my case it was about this line:
As a workaround, swaping executor.py for the below version seemed to fix the errors for me, maybe worth a shot? You may also have to delete your SwinIR dir and clone this version instead: Also in your error log, its complaining about not finding module k_diffusion maybe try: |
Hey @mariepop13 , is this problem solved? |
Here what I have.
I did what proposed In #1… nothing change…
after pip install --upgrade jaxlib
Thanks for your time.
The text was updated successfully, but these errors were encountered: