4 Commits
Author SHA1 Message Date
TeaCrab 9c3af9fc8a Update 20260413
* RandomLora & RandomModel
    * Walks the `models/checkpoints` and `models/loras` folder for `.safetensors` files and uses Regex patterns to filter them down, then randomly select one to apply.
    * If the `pattern` is changed, filtering and randomization will be triggered next time the node is executed.
    * `every` parameter allows the selected model to loop for a certain number of times before next randomization.
    * `pause` holds off randomization and keep using the same model for generation indefinitely.
    * `skip` will randomly select another model ignoring the `every` parameter but the looping will continue to count up.
    * `RESULT` output will show in text format the current number of loops, which model is currently selected, which model has ran and how many times, and lists all the models that hasn't ran.  Use `Preview as Text` or `Show Text` node to access.

* Models are pooled - loaded to RAM from HDD/SSDs, this causes RAM to be filled to the brim, however, Python seem to be able to automatically release memory for new ones
    * If previously loaded models are selected again, it is already in the RAM, so no need to access SSD or HDD for it again.
    * This saves the tiny bit of load time when using SSD, but could potentially save a lot of loading time for HDD.
    * Eventually this could be used for cycling through multiple designated models to compare their differences.
2026-04-13 20:33:25 -04:00
TeaCrab 90408f02cb 20260412:
WIP RandomLora, RandomModel
2026-04-12 21:38:57 -04:00
TeaCrab 3335acbc27 Added CropTo and KorniaGamma node, Fixed an issue with ImageScale Node
Image Scale node now uses LANCZOS sampling instead of whatever 'area' is.

This allows none power of 2 scaling to produce smooth results.
2024-04-25 21:22:11 -04:00
TeaCrab 2f085c3462 Now the unused code is ACTUALLY hidden. 2024-02-05 20:44:10 -05:00