Mastering ComfyUI: Getting started with API - TUTORIAL

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

ความคิดเห็น • 33

  • @dongyanghan4030
    @dongyanghan4030 3 หลายเดือนก่อน

    Traceback (most recent call last):
    File "D:\BaiduSyncdisk\Proceduralization\default\4comfyui\batch_test0621.py", line 18, in
    prompt_workflow = json.load(open('D:\\BaiduSyncdisk\\Proceduralization\\default\\4comfyui\\workflow_api.json'))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "json\__init__.py", line 293, in load
    UnicodeDecodeError: 'gbk' codec can't decode byte 0xa8 in position 479: illegal multibyte sequence

  • @cyril1111
    @cyril1111 8 หลายเดือนก่อน +10

    Very easy and useful to understand. Thank you!
    Now, let's put this into a nice Frontend GUI :)

    • @zachzimmermann5209
      @zachzimmermann5209 5 หลายเดือนก่อน +1

      1. Complicated front end UIs are built for Stable Diffusion
      2. Comfyui is built as a node-based alternative for better control and complex workflows
      3. Use comfyui as the backend for a new, complicated front end UI
      We've gone full circle lol

    • @MaisonMeta
      @MaisonMeta 5 หลายเดือนก่อน

      @@zachzimmermann5209lol that’s where you don’t understand. Using comfy as a backend for an easy to use, simple and clean frontend UI. Circle is broken now ;)

  • @stabilitylabs
    @stabilitylabs 27 วันที่ผ่านมา

    can you update with FLUX?

  • @MsMadvas
    @MsMadvas 8 หลายเดือนก่อน +5

    Someone should make a mobile app, which users set up with their own comfy URL and workflow a then provides simple UI to input images from the phone for inpainting or other stuff, using this API.

    • @mstew8386
      @mstew8386 8 หลายเดือนก่อน

      There exist several.

    • @drorlazar
      @drorlazar 7 หลายเดือนก่อน

      @@mstew8386
      can you direct to a few?

    • @DavideGomba
      @DavideGomba 7 หลายเดือนก่อน +1

      @@mstew8386 like? Can you name any examples of simple UIs and poassibly endponints?

    • @avgplayer
      @avgplayer 7 หลายเดือนก่อน

      It seems not?@@mstew8386

    • @siddhubhai2508
      @siddhubhai2508 19 วันที่ผ่านมา

      Working on already 😉

  • @dlogic1
    @dlogic1 2 หลายเดือนก่อน

    kill the bg music

  • @manuelhohmann9124
    @manuelhohmann9124 7 หลายเดือนก่อน +4

    Damn you can't Imagine how much i love your Voice + Music in the background! I've never felt so good while i watched a Video. You have a awesome soothing voice! Thanks for this Video

    • @DreamingAIChannel
      @DreamingAIChannel  7 หลายเดือนก่อน +1

      ❤️

    • @manuelhohmann9124
      @manuelhohmann9124 7 หลายเดือนก่อน

      Is there anyway to connect via Discord or something else? :)@@DreamingAIChannel

    • @KamalSingh-zo1ol
      @KamalSingh-zo1ol 5 หลายเดือนก่อน

      @@DreamingAIChannel Which ai system did you use for voice cloning and generation?

  • @gempyton6440
    @gempyton6440 5 หลายเดือนก่อน +1

    is possible to make comfyui into telegram bot? i want to make telegram bot wich it has face swap feature

  • @Roguefromearth
    @Roguefromearth 3 หลายเดือนก่อน

    Hey, I am getting error - ERROR: No matching distribution found for websockets-client

  • @abrahamgeorgec
    @abrahamgeorgec 3 หลายเดือนก่อน

    Nice Explanation. Where you able to download a video (from a video workflow) to a user specific folder ?

  • @mahilkr
    @mahilkr 4 หลายเดือนก่อน

    That was a great explanation. How can I go about inpainting using two images: the original image and the mask data?

  • @AldoZorzi
    @AldoZorzi 2 หลายเดือนก่อน +1

    Thanks for this! It definitely put me on the right path. Only to thank you, a little tip: changing get_image method to
    def get_image(filename, subfolder, folder_type):
    data = {"filename": filename, "subfolder": subfolder, "type": folder_type}
    url_values = urllib.parse.urlencode(data)
    img_data = requests.get("{}/view?{}".format(server_address, url_values)).content
    return img_data
    and your code to
    ...
    for node_id in images:
    for image_data in images[node_id]:
    with open(f"{args.dest}/{filename}", 'wb') as handler:
    handler.write(image_data)
    ...
    metatags are preserved and dragging a file into ComfyUI loads the workflow and seeds data.

  • @eveekiviblog7361
    @eveekiviblog7361 3 หลายเดือนก่อน

    Please show how we can link comfy to telegram bot

  • @一二三-f1j
    @一二三-f1j 3 หลายเดือนก่อน +1

    Just remove the piano track, very distracting.

  • @luxipo9934
    @luxipo9934 2 หลายเดือนก่อน

    This is soectacular

  • @mac4027
    @mac4027 6 หลายเดือนก่อน +1

    lol your voice is so good that i cant tell if its also AI 😅

    • @mac4027
      @mac4027 6 หลายเดือนก่อน +1

      oh it actually is ai 😆

    • @DreamingAIChannel
      @DreamingAIChannel  6 หลายเดือนก่อน

      yep!😋

  • @banzai316
    @banzai316 8 หลายเดือนก่อน +2

    Very useful. Learning some advanced concepts from this channel. This can be very useful in building custom apps. Thank you 👏

  • @pericoel21
    @pericoel21 7 หลายเดือนก่อน

    Thanks for the discovery, I program Python and this will be useful. I'm thinking on creating a script you can launch while playing roleplaying games so it generates portraits of NPCs on the fly. Can't wait to see those ideas you have!
    I've yet to try the API scripting, but one question that comes to mind is the use of custom nodes. It is actually something that I don't have a good grasp using standard comfyUI. My doubt might be good content for a noob friendly short, maybe, and it is as follows: Theoretically you can import a workflow from an image because it is saved in the metadata. What is the behavior in the input nodes when you import this way? Does the prompt come filled? What happens to nodes that import images which, clearly, don't exist in your machine? And in the case of API formatted workflows, is there a way to specify the new nodes?
    Maybe I'm overthinking, but my logic here is that custom nodes are analogous to importing libraries when programming: you have to hard-code the import at the beginning.

    • @DreamingAIChannel
      @DreamingAIChannel  7 หลายเดือนก่อน +1

      Hi, sorry for the late reply, I think you're mixing up the information a bit :D
      The workflow that's embedded in the image is a normal workflow (not in API format) and when you import it, comfyui will tell you if any nodes are missing and yes, it will fill the prompt like the last time you saved it.
      As for adding new nodes to an API-formatted workflow, it is possible but you need to understand how comfyui works and manually create the link between input and output!
      Yes, custom nodes are in most cases literally a python library, but the syntax you have to write to use them is quite complex if you don't want to use the ComfyUI GUI xD
      Bdw I think your idea is great though!

    • @pericoel21
      @pericoel21 7 หลายเดือนก่อน

      @@DreamingAIChannel Thanks! My doubt was if you can program an API workflow with custom nodes. But probably there's a way to force their installation anyway.

    • @DreamingAIChannel
      @DreamingAIChannel  7 หลายเดือนก่อน +1

      @@pericoel21 ohh! sure, you can do that, but I'm not sure about the forced installation process. As far as I know, the only method is to install the ComfyUI manager and do it from the GUI. When you import the workflow with custom nodes you don't have, use the 'Install Missing Custom Nodes' function. This will bring up a view where you can install the missing node by clicking 'install'. This is because, unlike Python libraries where you have package managers like 'pip', there's no equivalent in ComfyUI yet. The manager is the closest thing to 'pip' in this case.