Open andreasjansson opened 2 years ago
Would love to see cog work on Windows, either in wsl2 or otherwise. I've tried "all" of the ways to make AI art on Windows:
At some point during the above fun, I came across pixray and wanted to see what I could do, especially as you'd wrapped multiple generators in one project, and I was hoping the container-based approach meant quick and easy setup, that being the point. Then I saw cog was going to make it even easier!
Oh well, I did not get very far with projects 6 (pixray/cog) or 7 (pixray/docker). Gave up on these, but would love to come back to it!
If anyone is interested in my notes on the above, you can find them here:
and here
This is super helpful information, thanks @halr9000. Do you need to run this locally, or would it be helpful if there was some way of running Cog models in the cloud somewhere?
E.g. we could have a way to make it easy to run on a GPU machine on Google Cloud, or something. That way you wouldn't have to deal with all this, but it would mean you'd have to pay for GPU time on Google Cloud.
Local is my goal, yes. I know of ways to get it done in the cloud where I'd use linux anyway. I am somewhat close to getting pixray w/vqgan working non-containerized, but it's a hack of requirements.txt -> environment.yml for conda, and I'm still fiddling with it. Unable to get diffvg to install yet, I see that it'll just disable that drawer.
Here's what I have so far but I don't love it. Trying a few diff version combinations w/py 3.8, 3.9, pytorch, etc.
--- environment.yml ---
name: pixray
channels:
- pytorch
- conda-forge
- fastai
- defaults
dependencies:
- python>=3.9
- pip
- pytorch
- torchvision
- torchtext
- numpy
- tqdm
- matplotlib
- braceexpand
- einops
- imageio
- ipython
- kornia
- omegaconf
- pillow
- pyyaml
- scikit-learn
- scikit-image
- torch-optimizer
- PyWavelets
- sentencepiece
- svgpathtools
- cssutils
- cmake
- lpips
- sentence-transformers
- py-opencv
- timm
- pip:
- colorthief
- torch-tools
- git+https://github.com/bfirsh/taming-transformers.git@7a6e64ee
- git+https://github.com/openai/CLIP@40f5484
- git+https://github.com/pvigier/perlin-numpy@6f077f8
# - git+https://github.com/pixray/diffvg
- git+https://github.com/fbcotter/pytorch_wavelets
- git+https://github.com/pixray/aphantasia@7e6b3bb
- resmem
Some data from @nicholascelestin on how to run it in WSL: https://canary.discord.com/channels/775512803439280149/852636181492793344/989652053397733376
WSL2 is awesome
Some work on this: https://github.com/replicate/cog/pull/681
Cog currently only works on Mac and Linux. We should support Windows as well.
User data
See also
363
(This is edited by @andreasjansson and @bfirsh. Consider it a wiki!