nerdyrodent / VQGAN-CLIP

Just playing with getting VQGAN+CLIP running locally, rather than having to use colab.
Other
2.59k stars 427 forks source link

zoom.sh fails after 25 iterations #81

Closed Logic-Beach closed 2 years ago

Logic-Beach commented 2 years ago

here is the output: Working with z of shape (1, 256, 16, 16) = 65536 dimensions. loaded pretrained LPIPS loss from taming/modules/autoencoder/lpips/vgg.pth VQLPIPSWithDiscriminator running with hinge loss. Restored from checkpoints/vqgan_imagenet_f16_16384.ckpt Using device: cuda:0 Optimising using: Adam Using text prompts: ['Rectangle camera Robot surreal'] Using seed: 6045542010 i: 0, loss: 0.873045, losses: 0.873045 i: 25, loss: 0.817415, losses: 0.817415 25it [00:07, 3.42it/s] zoom.sh: 21: convert: not found zoom.sh: 22: convert: not found zoom.sh: 25: Syntax error: Bad for loop variable

Logic-Beach commented 2 years ago

I've tried a number of things, I got the dependencies issue that was givving the 'convert...' error fixed, but I still can't figure out the "Bad for loop variable" error... I do not know enough about BASH.

nerdyrodent commented 2 years ago

You don't have image magick installed. sudo apt install imagemagick

Logic-Beach commented 2 years ago

I certainly have it installed now but I am still getting the "bad For loop variable" message.

In your zoom.sh file, does the MAX_EPOCHS = $3 need quotes? or maybe no dollar sign?

Even when I try to put in a temporary value for the for loop counter it still gives me that error.

Logic-Beach commented 2 years ago

I got it to run by changing the For loop from for (( i=1; i<MAX_EPOCHS; i++ )) to for i in 1 2 3

Logic-Beach commented 2 years ago

No matter what I do it runs twice. IDK what's going on here.

Logic-Beach commented 2 years ago

Even if I try for i in {1..150} I get zoom.sh: 27: printf: {1..150}: expected numeric value it will do this twice then dump into ffmpeg and create a two frame movie...

So strange.

Logic-Beach commented 2 years ago

Wow! turns out sh and ./ are different`!!

bash != sh... I learned that today., all is well, sorry for being a pest lol.