Code Monkey home page Code Monkey logo

Comments (6)

receyuki avatar receyuki commented on August 23, 2024 1

There might be some details I need to explain. The images transferred in the workflow don't contain any metadata; they are just a bunch of pixels. Prompt Reader can only read metadata from images that have been saved as files.

If you could provide me with a complete application scenario, I might be able to think of alternative solutions to help you complete your pipeline.

BTW, if you convert the image widget to an input, you can input any image file by inputting the complete file path in STRING format.

from comfyui-prompt-reader-node.

RangerFrank avatar RangerFrank commented on August 23, 2024

SDpromptsuggestion

Like this, but for images instead of a filename.

from comfyui-prompt-reader-node.

RangerFrank avatar RangerFrank commented on August 23, 2024

Wasn't aware that the metadata was being applied at save and not in a pre-save process. I was hoping to take the image reference with attached meta data and feed it straight back into the Prompt Reader, I assume given how it's set up that I would need to take the output filename from Prompt Saver and feed that back into Prompt Reader so it can read the files from disc, correct? The File Name output from Prompt saver doesn't provide path data so I'd have to manually append the path to the filename myself, correct?

from comfyui-prompt-reader-node.

receyuki avatar receyuki commented on August 23, 2024

Theoretically, yes. But currently, since the reader cannot directly accept a string format path, you need to find a workaround.

However, you’ve also made me realise that having the prompt saver output the complete file path could be a very practical feature. Also, I will modify the batch loader node so that it can also accept a single image input, meaning that it will also work when the path points to a single image instead of a folder. I'll add these two features in version 1.2.

from comfyui-prompt-reader-node.

receyuki avatar receyuki commented on August 23, 2024

Please try out the single file string support in the new version of the Batch Loader.

from comfyui-prompt-reader-node.

RangerFrank avatar RangerFrank commented on August 23, 2024

Excellent, this will work as needed. One thing I noticed if using the Batch Loader into the Prompt reader the display image doesn't update, though this doesn't affect other functionality.

from comfyui-prompt-reader-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.