Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
ce2df71
1
Parent(s):
7f4023f
Update app.py
Browse files
app.py
CHANGED
@@ -113,47 +113,53 @@ transform = transforms.Compose(
|
|
113 |
|
114 |
|
115 |
|
116 |
-
os.system("wget https://huggingface.co/akhaliq/JoJoGAN-jojo/resolve/main/jojo_preserve_color.pt")
|
117 |
|
118 |
-
|
119 |
|
120 |
|
121 |
-
ckptjojo = torch.load(
|
122 |
generatorjojo.load_state_dict(ckptjojo["g"], strict=False)
|
123 |
|
124 |
-
os.system("wget https://huggingface.co/akhaliq/jojogan-disney/resolve/main/disney_preserve_color.pt")
|
125 |
|
126 |
-
|
|
|
|
|
127 |
generatordisney.load_state_dict(ckptdisney["g"], strict=False)
|
128 |
|
129 |
-
os.system("wget https://huggingface.co/akhaliq/jojo-gan-jinx/resolve/main/arcane_jinx_preserve_color.pt")
|
130 |
|
131 |
-
|
|
|
|
|
132 |
generatorjinx.load_state_dict(ckptjinx["g"], strict=False)
|
133 |
|
134 |
-
os.system("wget https://huggingface.co/akhaliq/jojogan-arcane/resolve/main/arcane_caitlyn_preserve_color.pt")
|
135 |
|
136 |
-
|
|
|
|
|
137 |
generatorcaitlyn.load_state_dict(ckptcaitlyn["g"], strict=False)
|
138 |
|
139 |
-
os.system("wget https://huggingface.co/akhaliq/JoJoGAN-jojo/resolve/main/jojo_yasuho_preserve_color.pt")
|
140 |
|
141 |
-
|
|
|
|
|
142 |
generatoryasuho.load_state_dict(ckptyasuho["g"], strict=False)
|
143 |
|
144 |
-
os.system("wget https://huggingface.co/akhaliq/jojogan-arcane/resolve/main/arcane_multi_preserve_color.pt")
|
145 |
|
146 |
-
|
|
|
|
|
147 |
generatorarcanemulti.load_state_dict(ckptarcanemulti["g"], strict=False)
|
148 |
|
149 |
-
os.system("wget https://huggingface.co/akhaliq/jojo-gan-art/resolve/main/art.pt")
|
150 |
|
151 |
-
|
|
|
|
|
152 |
generatorart.load_state_dict(ckptart["g"], strict=False)
|
153 |
|
154 |
-
os.system("wget https://huggingface.co/akhaliq/jojo-gan-spiderverse/resolve/main/Spiderverse-face-500iters-8face.pt")
|
155 |
|
156 |
-
|
|
|
|
|
157 |
generatorspider.load_state_dict(ckptspider["g"], strict=False)
|
158 |
|
159 |
|
|
|
113 |
|
114 |
|
115 |
|
|
|
116 |
|
117 |
+
modeljojo = hf_hub_download(repo_id="akhaliq/JoJoGAN-jojo", filename="jojo_preserve_color.pt")
|
118 |
|
119 |
|
120 |
+
ckptjojo = torch.load(modeljojo, map_location=lambda storage, loc: storage)
|
121 |
generatorjojo.load_state_dict(ckptjojo["g"], strict=False)
|
122 |
|
|
|
123 |
|
124 |
+
modeldisney = hf_hub_download(repo_id="akhaliq/jojogan-disney", filename="disney_preserve_color.pt")
|
125 |
+
|
126 |
+
ckptdisney = torch.load(modeldisney, map_location=lambda storage, loc: storage)
|
127 |
generatordisney.load_state_dict(ckptdisney["g"], strict=False)
|
128 |
|
|
|
129 |
|
130 |
+
modeljinx = hf_hub_download(repo_id="akhaliq/jojo-gan-jinx", filename="arcane_jinx_preserve_color.pt")
|
131 |
+
|
132 |
+
ckptjinx = torch.load(modeljinx, map_location=lambda storage, loc: storage)
|
133 |
generatorjinx.load_state_dict(ckptjinx["g"], strict=False)
|
134 |
|
|
|
135 |
|
136 |
+
modelcaitlyn = hf_hub_download(repo_id="akhaliq/jojogan-arcane", filename="arcane_caitlyn_preserve_color.pt")
|
137 |
+
|
138 |
+
ckptcaitlyn = torch.load(modelcaitlyn, map_location=lambda storage, loc: storage)
|
139 |
generatorcaitlyn.load_state_dict(ckptcaitlyn["g"], strict=False)
|
140 |
|
|
|
141 |
|
142 |
+
modelyasuho = hf_hub_download(repo_id="akhaliq/JoJoGAN-jojo", filename="jojo_yasuho_preserve_color.pt")
|
143 |
+
|
144 |
+
ckptyasuho = torch.load(modelyasuho, map_location=lambda storage, loc: storage)
|
145 |
generatoryasuho.load_state_dict(ckptyasuho["g"], strict=False)
|
146 |
|
|
|
147 |
|
148 |
+
model_arcane_multi = hf_hub_download(repo_id="akhaliq/jojogan-arcane", filename="arcane_multi_preserve_color.pt")
|
149 |
+
|
150 |
+
ckptarcanemulti = torch.load(model_arcane_multi, map_location=lambda storage, loc: storage)
|
151 |
generatorarcanemulti.load_state_dict(ckptarcanemulti["g"], strict=False)
|
152 |
|
|
|
153 |
|
154 |
+
modelart = hf_hub_download(repo_id="akhaliq/jojo-gan-art", filename="art.pt")
|
155 |
+
|
156 |
+
ckptart = torch.load(modelart, map_location=lambda storage, loc: storage)
|
157 |
generatorart.load_state_dict(ckptart["g"], strict=False)
|
158 |
|
|
|
159 |
|
160 |
+
modelSpiderverse = hf_hub_download(repo_id="akhaliq/jojo-gan-spiderverse", filename="Spiderverse-face-500iters-8face.pt")
|
161 |
+
|
162 |
+
ckptspider = torch.load(modelSpiderverse, map_location=lambda storage, loc: storage)
|
163 |
generatorspider.load_state_dict(ckptspider["g"], strict=False)
|
164 |
|
165 |
|