1. 02 Jul, 2024 3 commits
    • comfyanonymous's avatar
      Fix SamplerEulerCFGpp node. · 01991f72
      comfyanonymous authored
      01991f72
    • comfyanonymous's avatar
      Remove some empty lines. · 2f032016
      comfyanonymous authored
      2f032016
    • shawnington's avatar
      Fix to #3465. Prevent, resaving of duplicate images if overwrite not specified (#3472) · 52aaee25
      shawnington authored
      * Fix to #3465. Prevent the, resaving of duplicate images if overwrite not specified
      
      This is a fix to #3465 
      
      Adds function compare_image_hash to do a sha256 hash comparison between an uploaded image and existing images with matching file names. 
      
      This changes the behavior so that only images having the same filename that are actually different are saved to input, existing images are instead now opened instead of resaved with increment. 
      
      Currently, exact duplicates with the same filename are resave saved with an incremented filename in the format:
      
      <filename> (n).ext 
      
      with the code: 
      
      ```
      while os.path.exists(filepath): 
                              filename = f"{split[0]} ({i}){split[1]}"
                              filepath = os.path.join(full_output_folder, filename)
                              i += 1
      ```
      
      This commit changes this to: 
      
      ```
      while os.path.exists(filepath): 
                              if compare_image_hash(filepath, image):
                                  image_is_duplicate = True
                                  break
                              filename = f"{split[0]} ({i}){split[1]}"
                              filepath = os.path.join(full_output_folder, filename)
                              i += 1
      ```
      
      a check for if image_is_duplicate = False is done before saving the file. 
      
      Currently, if you load the same image of a cat named cat.jpg into the LoadImage node 3 times, you will get 3 new files in your input folder with incremented file names.
      
      With this change, you will now only have the single copy of cat.jpg, that will be re-opened instead of re-saved. 
      
      However if you load 3 different images of cats named cat.jpg, you will get the expected behavior of having:
      cat.jpg
      cat (1).jpg
      cat (2).jpg
      
      This saves space and clutter. After checking my own input folder, I have 800+ images that are duplicates that were resaved with incremented file names amounting to more than 5GB of duplicated data.
      
      * fixed typo in expression
      52aaee25
  2. 01 Jul, 2024 9 commits
  3. 30 Jun, 2024 2 commits
  4. 29 Jun, 2024 2 commits
  5. 28 Jun, 2024 4 commits
  6. 27 Jun, 2024 11 commits
  7. 26 Jun, 2024 7 commits
  8. 25 Jun, 2024 2 commits
    • comfyanonymous's avatar
      Implement my alternative take on CFG++ as the euler_pp sampler. · 69d710e4
      comfyanonymous authored
      Add euler_ancestral_pp which is the ancestral version of euler with the
      same modification.
      69d710e4
    • pythongosssss's avatar
      New Menu & Workflow Management (#3112) · 90aebb6c
      pythongosssss authored
      * menu
      
      * wip
      
      * wip
      
      * wip
      
      * wip
      
      * wip
      
      * workflow saving/loading
      
      * Support inserting workflows
      Move buttosn to top of lists
      
      * fix session storage
      implement renaming
      
      * temp
      
      * refactor, better workflow instance management
      
      * wip
      
      * progress on progress
      
      * added send to workflow
      various fixes
      
      * Support multiple image loaders
      
      * Support dynamic size breakpoints based on content
      
      * various fixes
      add close unsaved warning
      
      * Add filtering tree
      
      * prevent renaming unsaved
      
      * fix zindex on hover
      
      * fix top offset
      
      * use filename as workflow name
      
      * resize on setting change
      
      * hide element until it is drawn
      
      * remove glow
      
      * Fix export name
      
      * Fix test, revert accidental changes to groupNode
      
      * Fix colors on all themes
      
      * show hover items on smaller screen (mobile)
      
      * remove debugging code
      
      * dialog fix
      
      * Dont reorder open workflows
      Allow elements around canvas
      
      * Toggle body display on setting change
      
      * Fix menu disappearing on chrome
      
      * Increase delay when typing, remove margin on Safari, fix dialog location
      
      * Fix overflow issue on iOS
      
      * Add reset view button
      Prevent view changes causing history entries
      
      * Bottom menu wip
      
      * Various fixes
      
      * Fix merge
      
      * Fix breaking old menu position
      
      * Fix merge adding restore view to loadGraphData
      90aebb6c