mirror of
https://github.com/justUmen/Bjornulf_custom_nodes.git
synced 2026-03-21 12:42:11 -03:00
0.29
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# 🔗 Comfyui : Bjornulf_custom_nodes v0.28 🔗
|
# 🔗 Comfyui : Bjornulf_custom_nodes v0.29 🔗
|
||||||
|
|
||||||
# ❤️ Coffee : ☕☕☕☕☕ 5/5
|
# ❤️ 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.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.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.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
|
# 📝 Nodes descriptions
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
from decimal import Decimal, ROUND_HALF_UP
|
||||||
class LoopFloat:
|
class LoopFloat:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -17,8 +18,12 @@ class LoopFloat:
|
|||||||
|
|
||||||
def create_loop_float(self, from_this, to_that, jump):
|
def create_loop_float(self, from_this, to_that, jump):
|
||||||
range_values = []
|
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:
|
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
|
current_value += jump
|
||||||
return (range_values,)
|
|
||||||
|
return (range_values,)
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "bjornulf_custom_nodes"
|
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, ..."
|
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"}
|
license = {file = "LICENSE"}
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 864 KiB After Width: | Height: | Size: 898 KiB |
Reference in New Issue
Block a user