SingleZombie commited on
Commit
02ed689
1 Parent(s): ac0890f

update path

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -62,13 +62,10 @@ huggingface_hub.hf_hub_download('PKUWilliamYang/Rerender',
62
 
63
  huggingface_hub.hf_hub_download('PKUWilliamYang/Rerender',
64
  'models/ebsynth',
65
- local_dir='src/ebsynth/deps/ebsynth/')
66
-
67
- shutil.move('models/gmflow_sintel-0c07dcb3.pth', 'model/gmflow_sintel-0c07dcb3.pth')
68
- shutil.move('models/epoch_resnet.pth', 'model/epoch_resnet.pth')
69
- shutil.move('src/ebsynth/deps/ebsynth/models/ebsynth', 'src/ebsynth/deps/ebsynth/bin/ebsynth')
70
-
71
- shutil.rmtree('models')
72
 
73
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
74
 
 
62
 
63
  huggingface_hub.hf_hub_download('PKUWilliamYang/Rerender',
64
  'models/ebsynth',
65
+ local_dir='./')
66
+
67
+ os.symlink('models', 'model')
68
+ os.symlink('models', 'src/ebsynth/deps/ebsynth/')
 
 
 
69
 
70
  device = 'cuda' if torch.cuda.is_available() else 'cpu'
71