fffiloni commited on
Commit
561f681
·
verified ·
1 Parent(s): 0d6e1ac

clean execute_task

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -118,8 +118,9 @@ def generate_image(setup_args, num_iterations):
118
  def run_main():
119
  thread_status["running"] = True # Mark thread as running
120
  try:
121
- result_container["best_image"], result_container["total_init_rewards"], result_container["total_best_rewards"] = execute_task(
122
- args, trainer, device, dtype, shape, enable_grad, settings, progress_callback)
 
123
  except torch.cuda.OutOfMemoryError as e:
124
  print(f"CUDA Out of Memory Error: {e}")
125
  error_status["error_occurred"] = True
 
118
  def run_main():
119
  thread_status["running"] = True # Mark thread as running
120
  try:
121
+ execute_task(
122
+ args, trainer, device, dtype, shape, enable_grad, settings, progress_callback
123
+ )
124
  except torch.cuda.OutOfMemoryError as e:
125
  print(f"CUDA Out of Memory Error: {e}")
126
  error_status["error_occurred"] = True