hysts commited on
Commit
817a198
1 Parent(s): 99875b7

Update description of GPU requirements

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. app_training.py +2 -1
app.py CHANGED
@@ -17,7 +17,7 @@ TITLE = '# [Tune-A-Video](https://tuneavideo.github.io/) Training UI'
17
 
18
  ORIGINAL_SPACE_ID = 'hysts/Tune-A-Video-Training-UI'
19
  SPACE_ID = os.getenv('SPACE_ID', ORIGINAL_SPACE_ID)
20
- SHARED_UI_WARNING = f'''# Attention - This Space doesn't work in this shared UI. You can duplicate and use it with a paid private A100 GPU.
21
 
22
  <center><a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a></center>
23
  '''
@@ -29,7 +29,7 @@ else:
29
  CUDA_NOT_AVAILABLE_WARNING = f'''# Attention - Running on CPU.
30
  <center>
31
  You can assign a GPU in the {SETTINGS} tab if you are running this on HF Spaces.
32
- "A100 large" is required to run this demo.
33
  </center>
34
  '''
35
 
 
17
 
18
  ORIGINAL_SPACE_ID = 'hysts/Tune-A-Video-Training-UI'
19
  SPACE_ID = os.getenv('SPACE_ID', ORIGINAL_SPACE_ID)
20
+ SHARED_UI_WARNING = f'''# Attention - This Space doesn't work in this shared UI. You can duplicate and use it with a paid private A10G GPU.
21
 
22
  <center><a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a></center>
23
  '''
 
29
  CUDA_NOT_AVAILABLE_WARNING = f'''# Attention - Running on CPU.
30
  <center>
31
  You can assign a GPU in the {SETTINGS} tab if you are running this on HF Spaces.
32
+ You can use "A10G small/large" to run this demo.
33
  </center>
34
  '''
35
 
app_training.py CHANGED
@@ -87,7 +87,8 @@ def create_training_demo(trainer: Trainer,
87
  gr.Markdown('''
88
  - The base model must be a model that is compatible with [diffusers](https://github.com/huggingface/diffusers) library.
89
  - It takes a few minutes to download the base model first.
90
- - It will take about 4 minutes to train for 300 steps with an A100 GPU.
 
91
  - It takes a few minutes to upload your trained model.
92
  - You may want to try a small number of steps first, like 1, to see if everything works fine in your environment.
93
  - You can check the training status by pressing the "Open logs" button if you are running this on your Space.
 
87
  gr.Markdown('''
88
  - The base model must be a model that is compatible with [diffusers](https://github.com/huggingface/diffusers) library.
89
  - It takes a few minutes to download the base model first.
90
+ - It will take about 8 minutes to train for 300 steps with an A10G GPU.
91
+ - It will take about 4 minutes with an A100 GPU.
92
  - It takes a few minutes to upload your trained model.
93
  - You may want to try a small number of steps first, like 1, to see if everything works fine in your environment.
94
  - You can check the training status by pressing the "Open logs" button if you are running this on your Space.