Files changed (2) hide show
  1. gradio_app.py +1 -1
  2. requirements.txt +24 -23
gradio_app.py CHANGED
@@ -32,7 +32,7 @@ def dynamicrafter_demo(result_dir='./tmp/', res=512):
32
  else:
33
  raise NotImplementedError(f"Unsupported resolution: {res}")
34
  image2video = Image2Video(result_dir, resolution=resolution)
35
- image2video.get_image = spaces.GPU(image2video.get_image, duration=120)
36
 
37
  with gr.Blocks(analytics_enabled=False, css=css) as dynamicrafter_iface:
38
  gr.Markdown(logo)
 
32
  else:
33
  raise NotImplementedError(f"Unsupported resolution: {res}")
34
  image2video = Image2Video(result_dir, resolution=resolution)
35
+ image2video.get_image = spaces.GPU(image2video.get_image, duration=120, queue=False)
36
 
37
  with gr.Blocks(analytics_enabled=False, css=css) as dynamicrafter_iface:
38
  gr.Markdown(logo)
requirements.txt CHANGED
@@ -1,23 +1,24 @@
1
- decord==0.6.0
2
- einops==0.3.0
3
- imageio==2.9.0
4
- numpy==1.24.2
5
- omegaconf==2.1.1
6
- opencv_python
7
- pandas==2.0.0
8
- Pillow==9.5.0
9
- pytorch_lightning==1.9.3
10
- PyYAML==6.0
11
- setuptools==65.6.3
12
- torch==2.0.0
13
- torchvision
14
- tqdm==4.65.0
15
- transformers==4.25.1
16
- moviepy
17
- av
18
- xformers
19
- gradio
20
- timm
21
- scikit-learn
22
- open_clip_torch==2.22.0
23
- kornia
 
 
1
+ decord==0.6.0
2
+ einops==0.3.0
3
+ imageio==2.9.0
4
+ numpy==1.24.2
5
+ omegaconf==2.1.1
6
+ opencv_python
7
+ pandas==2.0.0
8
+ Pillow==9.5.0
9
+ pytorch_lightning==1.9.3
10
+ PyYAML==6.0
11
+ setuptools==65.6.3
12
+ torch==2.0.0
13
+ torchvision
14
+ tqdm==4.65.0
15
+ transformers==4.25.1
16
+ moviepy
17
+ av
18
+ xformers
19
+ gradio
20
+ timm
21
+ scikit-learn
22
+ open_clip_torch==2.22.0
23
+ kornia
24
+ accelerate