arjunk commited on
Commit
cd67e15
1 Parent(s): 46fcdda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -1,3 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import torch
2
  from tqdm import tqdm
3
  from torchvision.transforms import Compose, Resize, CenterCrop, ToTensor, Normalize
 
1
+ !pip install torch torchvision torchaudio
2
+ !git clone https://github.com/gnobitab/FuseDream.git
3
+ !pip install ftfy regex tqdm numpy scipy h5py lpips==0.1.4
4
+ !pip install git+https://github.com/openai/CLIP.git
5
+ !pip install gdown
6
+ !pip install gradio
7
+ !gdown 'https://drive.google.com/uc?id=17ymX6rhsgHDZw_g5XgAFW4xLSDocARCM'
8
+ !gdown 'https://drive.google.com/uc?id=1sOZ9og9kJLsqMNhaDnPJgzVsBZQ1sjZ5'
9
+
10
+
11
+ !ls
12
+ !cp biggan-256.pth FuseDream/BigGAN_utils/weights/
13
+ !cp biggan-512.pth FuseDream/BigGAN_utils/weights/
14
+ %cd FuseDream
15
+
16
  import torch
17
  from tqdm import tqdm
18
  from torchvision.transforms import Compose, Resize, CenterCrop, ToTensor, Normalize