RoyalEagle commited on
Commit
c132c65
1 Parent(s): 34377ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py CHANGED
@@ -1,5 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import sys
2
  sys.path.append("pixray")
 
3
  import gradio as gr
4
  import torch
5
  import pixray
 
1
+ pip install torch==1.9.0+cu111 torchtext==0.10.0 torchvision==0.10.0+cu111 -f https://download.pytorch.org/whl/torch/ -f https://download.pytorch.org/whl/torchvision/
2
+
3
+ git clone https://github.com/openai/CLIP
4
+ # !pip install taming-transformers
5
+ git clone https://github.com/CompVis/taming-transformers.git
6
+ rm -Rf pixray
7
+ git clone https://github.com/dribnet/pixray
8
+ pip install ftfy regex tqdm omegaconf pytorch-lightning
9
+ pip install kornia==0.6.1
10
+ pip install imageio-ffmpeg
11
+ pip install einops
12
+ pip install torch-optimizer
13
+ pip install easydict
14
+ pip install braceexpand
15
+ pip install git+https://github.com/pvigier/perlin-numpy
16
+ mkdir steps
17
+ mkdir models
18
+ wget https://user-images.githubusercontent.com/945979/126260797-adc60317-9518-40de-8700-b1f93e81e0ec.png -O this_is_fine.png
19
+ wget https://user-images.githubusercontent.com/945979/126415385-d70ff2b0-f021-4238-9621-6180d33b242c.jpg -O perfume.jpg
20
+ pip install gradio==2.5.1
21
  import sys
22
  sys.path.append("pixray")
23
+
24
  import gradio as gr
25
  import torch
26
  import pixray