This commit is contained in:
justumen
2024-09-14 13:42:42 +02:00
parent 143aeccde2
commit 251012ad4a
4 changed files with 11 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
# 🔗 Comfyui : Bjornulf_custom_nodes v0.28 🔗
# 🔗 Comfyui : Bjornulf_custom_nodes v0.29 🔗
# ❤️ Coffee : ☕☕☕☕☕ 5/5
@@ -76,6 +76,7 @@ wget --content-disposition -P /workspace/ComfyUI/models/checkpoints "https://civ
- **v0.26**: New node : Loop write Text. Also increase nb of inputs allowed for most nodes. (+ update some breaking changes)
- **v0.27**: Two new nodes : Loop (Model+Clip+Vae) and Random (Model+Clip+Vae) - aka Checkpoint / Model
- **v0.28**: Fix random texts and add a lot of screenshots examples for several nodes.
- **v0.29**: Fix floating points issues with loop float node.
# 📝 Nodes descriptions

View File

@@ -1,3 +1,4 @@
from decimal import Decimal, ROUND_HALF_UP
class LoopFloat:
@classmethod
@@ -17,8 +18,12 @@ class LoopFloat:
def create_loop_float(self, from_this, to_that, jump):
range_values = []
current_value = from_this
current_value = Decimal(str(from_this))
to_that = Decimal(str(to_that))
jump = Decimal(str(jump))
while current_value <= to_that:
range_values.append(round(current_value, 2)) # Round to two decimal places
range_values.append(float(current_value.quantize(Decimal('0.01'), rounding=ROUND_HALF_UP)))
current_value += jump
return (range_values,)
return (range_values,)

View File

@@ -1,7 +1,7 @@
[project]
name = "bjornulf_custom_nodes"
description = "Nodes: Ollama, Text to Speech, Combine Texts, Random Texts, Save image for Bjornulf LobeChat, Text with random Seed, Random line from input, Combine images, Image to grayscale (black & white), Remove image Transparency (alpha), Resize Image, ..."
version = "0.28"
version = "0.29"
license = {file = "LICENSE"}
[project.urls]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 864 KiB

After

Width:  |  Height:  |  Size: 898 KiB