multimodalart HF Staff commited on
Commit
730c3c3
·
1 Parent(s): e0e9e9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -69,10 +69,7 @@ def count_files(*inputs):
69
  if(uses_custom):
70
  Training_Steps = int(inputs[-3])
71
  else:
72
- if(type_of_thing == "person"):
73
- Training_Steps = file_counter*200*2
74
- else:
75
- Training_Steps = file_counter*200
76
  if(is_spaces):
77
  summary_sentence = f'''You are going to train {concept_counter} {type_of_thing}(s), with {file_counter} images for {Training_Steps} steps. The training should take around {round(Training_Steps/1.1, 2)} seconds, or {round((Training_Steps/1.1)/60, 2)} minutes.
78
  The setup, compression and uploading the model can take up to 20 minutes.<br>As the T4-Small GPU costs US$0.60 for 1h, <span style="font-size: 120%"><b>the estimated cost for this training is US${round((((Training_Steps/1.1)/3600)+0.3+0.1)*0.60, 2)}.</b></span><br><br>
 
69
  if(uses_custom):
70
  Training_Steps = int(inputs[-3])
71
  else:
72
+ Training_Steps = file_counter*200
 
 
 
73
  if(is_spaces):
74
  summary_sentence = f'''You are going to train {concept_counter} {type_of_thing}(s), with {file_counter} images for {Training_Steps} steps. The training should take around {round(Training_Steps/1.1, 2)} seconds, or {round((Training_Steps/1.1)/60, 2)} minutes.
75
  The setup, compression and uploading the model can take up to 20 minutes.<br>As the T4-Small GPU costs US$0.60 for 1h, <span style="font-size: 120%"><b>the estimated cost for this training is US${round((((Training_Steps/1.1)/3600)+0.3+0.1)*0.60, 2)}.</b></span><br><br>