vinesmsuic commited on
Commit
91d0d23
1 Parent(s): e0e2b9a

more debug

Browse files
Files changed (2) hide show
  1. app.py +9 -0
  2. requirements.txt +1 -2
app.py CHANGED
@@ -9,6 +9,13 @@ from pathlib import Path
9
  from serve.constants import SERVER_PORT, ROOT_PATH, ELO_RESULTS_DIR
10
  from model.pre_download import pre_download_all_models, pre_download_video_models
11
 
 
 
 
 
 
 
 
12
  def build_combine_demo(models, elo_results_file, leaderboard_table_file):
13
 
14
  with gr.Blocks(
@@ -99,6 +106,8 @@ if __name__ == "__main__":
99
  elo_results_dir = ELO_RESULTS_DIR
100
  models = ModelManager()
101
 
 
 
102
  pre_download_all_models()
103
 
104
  elo_results_file, leaderboard_table_file = load_elo_results(elo_results_dir)
 
9
  from serve.constants import SERVER_PORT, ROOT_PATH, ELO_RESULTS_DIR
10
  from model.pre_download import pre_download_all_models, pre_download_video_models
11
 
12
+ def debug_packages():
13
+ import pkg_resources
14
+
15
+ installed_packages = pkg_resources.working_set
16
+ for package in installed_packages:
17
+ print(f"{package.key}=={package.version}")
18
+
19
  def build_combine_demo(models, elo_results_file, leaderboard_table_file):
20
 
21
  with gr.Blocks(
 
106
  elo_results_dir = ELO_RESULTS_DIR
107
  models = ModelManager()
108
 
109
+ debug_packages()
110
+
111
  pre_download_all_models()
112
 
113
  elo_results_file, leaderboard_table_file = load_elo_results(elo_results_dir)
requirements.txt CHANGED
@@ -27,7 +27,6 @@ torch-fidelity>=0.3.0
27
  setuptools>=59.5.0
28
  transformers
29
  torchmetrics>=0.6.0
30
- lpips
31
  kornia>=0.6
32
  diffusers>=0.18.0
33
  accelerate>=0.20.3
@@ -66,7 +65,7 @@ pre-commit
66
  pyav
67
  pyarrow
68
  tensorboard
69
- timm~=0.9
70
  wandb
71
  pandarallel
72
  kaleido
 
27
  setuptools>=59.5.0
28
  transformers
29
  torchmetrics>=0.6.0
 
30
  kornia>=0.6
31
  diffusers>=0.18.0
32
  accelerate>=0.20.3
 
65
  pyav
66
  pyarrow
67
  tensorboard
68
+ timm
69
  wandb
70
  pandarallel
71
  kaleido