krish-adi / barfi

Python Flow Based Programming environment that provides a graphical programming environment.
https://barfi.readthedocs.io
MIT License
646 stars 70 forks source link

A few features : ) #10

Open XmYx opened 2 years ago

XmYx commented 2 years ago

Hi! I've started using barfi in streamlit with stable diffusion. It will be a great tool for node based ai generation I think. I have a few things I'm missing, and wondering if it was possible to implement the following:

Image/Video output on the node, slider step adjustment.

Also, id like cycles. Do you have a recommendation how it would be possible? I have built a quick function that would stop my iterations when goal is reached. In my understanding its the id's that are problematic, but we could check for "first and last" blocks, and increment id's when a loop is reached. What do you think?

First ones to occur, but surely more to come. : ))

Looks like we are going to use it very intensly, given, some features can be updated : )

krish-adi commented 2 years ago

Hello @XmYx ,

  1. Image/Video output: do you mean that you'd like the node itself to display these features? (In the editor canvas?) If so, there is another issue #9 that addresses the same problem. Is that the case similar to what you want?

  2. Cycles: The compute engine at the moment is programmed for only DAGs. I've given some thought on the Cyclic graphs compute. In your case, would you want to loop through a certain section of the graph? And, if that's the case, how do you want to control the looping?

XmYx commented 2 years ago

Hi!

We will look into the first one, looks like image can be made possible.

Cycles: a check for first and last cell, if cycle, start running the first. As we want to have all control over our flow, stop would happen because of a loop counter. (If loop == zero, should run == false)

Its intended to use with stable diffusion. In the long run, were probably building a standalone frontend, and would love to have you on board.

https://discord.gg/sV3EQ8Zd