docstr: if enough sampling steps have been made after the last call to this, sets self.current_image from self.current_latent, and modifies self.id_live_preview accordingly
docstr_tok: ["if","enough","sampling","steps","have","been","made","after","the","last","call","to","this",",","sets","self.current_image","from","self.current_latent",",","and","modifies","self.id_live_preview","accordingly"]
code: def set_current_image(self):
      """if enough sampling steps have been made after the last call to this, sets self.current_image from self.current_latent, and modifies self.id_live_preview accordingly"""
      if not shared.parallel_processing_allowed:
          return
  
      if (
          self.sampling_step - self.current_image_sampling_step
          >= shared.opts.show_progress_every_n_steps
          and shared.opts.live_previews_enable
          and shared.opts.show_progress_every_n_steps != -1
      ):
          self.do_set_current_image()
  
imports: import datetime
  import logging
  import threading
  import time
  from modules import errors, shared, devices
  from typing import Optional
label_desc: Use image node_id 14 for calling the State obj's underlying member method code with example usage: obj.set_current_image() without return types