BetaDoggo / ComfyUI-Cloud-APIs

A set of ComfyUI nodes for using models served by fal.ai and Replicate.com
17 stars 2 forks source link

is it possible to add Flux w/loras and i2i? #4

Open KINGLIFER opened 2 weeks ago

KINGLIFER commented 2 weeks ago

I could not see the option to use Flux with loras while loading an image. ref: https://fal.ai/models/fal-ai/flux-lora/image-to-image

Thank you for such great work.

BetaDoggo commented 2 weeks ago

Sure, here's an example workflow: workflow Make sure that you're using the newest version and that the dependencies are also all installed. The lora_url should be a direct download link (you can usually get this by right clicking the download button and selecting copy link). Also keep in mind that the required strength value varies a lot by the style of the image. Let me know if you have any issues.

KINGLIFER commented 1 week ago

Some reason when I use this the image comes out b/w. On the site it does not. Will do some more testing to see why that is.

BetaDoggo commented 1 week ago

@KINGLIFER I'm an idiot, I just realized that my image conversion code was also converting the image to greyscale. I copied it from a previous project but forgot to remove that part. This was also an issue in the vision model nodes. Thank you so much for helping me catch this. I've pushed the fix now so you'll have to update.

KINGLIFER commented 1 week ago

And it has been updated? If I turn down the denoise It still goes b/w on the site this is not the case.

BetaDoggo commented 1 week ago

Yes it was fixed in aadf07b9c37dc69c1905b62b9fc2b28f22fa8c19 When I set the strength to 0.01 I get a nearly identical image (it's stretched because of the set generation resolution) image What method are you using to update the extension?

KINGLIFER commented 1 week ago

Not sure what I am doing wrong because it is still B&W and I can not afford to do more so. Your other node set up the exact same way produces color. Screenshot 2024-09-06 110246 Maybe I will try another time. Thank you for the work you put in.

KINGLIFER commented 5 days ago

:(

BetaDoggo commented 4 days ago

Sorry I've been busy the last week. As far as a know the only cause of this would be that the version you have is out of date. You should try reinstalling the extension completely (deleting the folder) and trying this again. Otherwise I'm not sure if there's anything else I can do, I can't replicate this issue anymore on a clean install.

KINGLIFER commented 3 days ago

Totally understand the busy time and no need to apologize. Curious did you try a low denoise like say .63?

Thank you will reinstall.

BetaDoggo commented 3 days ago

In the example above I set my strength to 0.01 and it produced an almost identical image to the input (stretched to match the generation resolution). Here are two with the regular image2image node: i2i dogi2i