Kurokabe commited on
Commit
9c7946e
1 Parent(s): 4eee7b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,8 +24,8 @@ hf_hub_download(repo_id="Kurokabe/GANime_Kimetsu-no-yaiba_Tensorflow", filename=
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"
28
- cfg["model"]["transformer_config"]["checkpoint_path"] = gpt_path + "/checkpoint"
29
 
30
  model = Net2Net(**cfg["model"], trainer_config=cfg["train"], num_replicas=1)
31
  model.first_stage_model.build((20, *IMAGE_SHAPE))
 
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
28
+ cfg["model"]["transformer_config"]["checkpoint_path"] = gpt_path
29
 
30
  model = Net2Net(**cfg["model"], trainer_config=cfg["train"], num_replicas=1)
31
  model.first_stage_model.build((20, *IMAGE_SHAPE))