Kurokabe commited on
Commit
b90b447
1 Parent(s): 6689a7c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -7
app.py CHANGED
@@ -6,18 +6,22 @@ import numpy as np
6
  import omegaconf
7
  import tensorflow as tf
8
  from pyprojroot.pyprojroot import here
9
- from huggingface_hub import hf_hub_url, cached_download
10
 
11
  from ganime.model.vqgan_clean.experimental.net2net_v3 import Net2Net
12
 
13
  IMAGE_SHAPE = (64, 128, 3)
14
 
15
- vqgan_path = cached_download(
16
- hf_hub_url("Kurokabe", "VQGAN_Kimetsu-no-yaiba_Tensorflow/vqgan_kny_image_full")
17
- )
18
- gpt_path = cached_download(
19
- hf_hub_url("Kurokabe", "GANime_Kimetsu-no-yaiba_Tensorflow/ganime_kny_video_full")
20
- )
 
 
 
 
21
 
22
  cfg = omegaconf.OmegaConf.load(here("configs/kny_video_gpt2_large_gradio.yaml"))
23
  cfg["model"]["first_stage_config"]["checkpoint_path"] = vqgan_path + "/checkpoint"
 
6
  import omegaconf
7
  import tensorflow as tf
8
  from pyprojroot.pyprojroot import here
9
+ from huggingface_hub import hf_hub_url, hf_hub_download
10
 
11
  from ganime.model.vqgan_clean.experimental.net2net_v3 import Net2Net
12
 
13
  IMAGE_SHAPE = (64, 128, 3)
14
 
15
+
16
+ hf_hub_download(repo_id="Kurokabe/VQGAN_Kimetsu-no-yaiba_Tensorflow", filename="checkpoint.data-00000-of-00001", subfolder="vqgan_kny_image_full")
17
+ hf_hub_download(repo_id="Kurokabe/VQGAN_Kimetsu-no-yaiba_Tensorflow", filename="checkpoint.index", subfolder="vqgan_kny_image_full")
18
+ vqgan_path = hf_hub_download(repo_id="Kurokabe/VQGAN_Kimetsu-no-yaiba_Tensorflow", filename="checkpoint", subfolder="vqgan_kny_image_full")
19
+
20
+
21
+
22
+ hf_hub_download(repo_id="Kurokabe/GANime_Kimetsu-no-yaiba_Tensorflow", filename="checkpoint.data-00000-of-00001", subfolder="ganime_kny_video_full")
23
+ hf_hub_download(repo_id="Kurokabe/GANime_Kimetsu-no-yaiba_Tensorflow", filename="checkpoint.index", subfolder="ganime_kny_video_full")
24
+ gpt_path = hf_hub_download(repo_id="Kurokabe/GANime_Kimetsu-no-yaiba_Tensorflow", filename="checkpoint", subfolder="ganime_kny_video_full")
25
 
26
  cfg = omegaconf.OmegaConf.load(here("configs/kny_video_gpt2_large_gradio.yaml"))
27
  cfg["model"]["first_stage_config"]["checkpoint_path"] = vqgan_path + "/checkpoint"