TinyTerra / ComfyUI_tinyterraNodes

A selection of nodes for Stable Diffusion ComfyUI
GNU General Public License v3.0
397 stars 45 forks source link

Feature Request #50

Open BWDrum opened 1 year ago

BWDrum commented 1 year ago

A node that allows for 100% full screen preview of each generated image as it's generated in real time. It would function like a full screen slide show when using the Auto Queue setting (for example). Or maybe a hotkey option to hide/unhide all UI elements in order to show just the preview or save image alone on screen.

I would actually pay for this.

TinyTerra commented 1 year ago

I've added this to c58dc2607c511666e0d5eb747c8b6a691c4edd58

There should now be an option in the node context menu, when an image is present, 'Fullscreen (ttN)' this will set the image to fullscreen and update as the image inside the node updates. (ie if you have latent previews enabled fullscreen will also cycle through the previews) otherwise just using this on any node that preview images should work.

No need to - but if you'd like ;)

Let me know if there are any issues...

BWDrum commented 1 year ago

Thank you!

This works exactly as I had imagined/requested. Wasn't even sure if I was asking the right coder. lol

I'm using the Firefox browser with a potato rig (Nvidia GeForce GTX 1080 with only 8 gigs VRAM), so generations take a little while to complete. I often run long batches, even overnight, and this is the perfect way to monitor progress from across the room.

I use it on the Save Image node to show the final results which also makes for an awesome screensaver. 

I've been waiting for something like this forever. 

Now, would it be possible to integrate into Automatic 1111? THAT would be very helpful as well. I'm sure a lot of other users would appreciate this feature, too.

I'll report any bugs going forward but so far, so good.

Thanks again and enjoy your coffee!

-- Brandon

On Monday, September 18, 2023 at 04:49:40 AM PDT, TinyTerra @.***> wrote:

I've added this to c58dc26

There should now be an option in the node context menu when an image is present - 'Fullscreen (ttN)' this will set the image to fullscreen and update as the image inside the node updates. (ie if you have latent previews enabled fullscreen will also cycle through the previews) otherwise just using this on any node that preview images should work.

No need to - but if you'd like ;)

Let me know if there are any issues...

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

TinyTerra commented 1 year ago

Awesome, glad it works how you hoped!

It's definitely a nice idea for continual generations.

I'm not so familiar with a1111s codebase - haven't really used it since comfy - but I'll have a look into it and see if I can't figure out a port.

Was thinking about adding history support as well, to be able to navigate through images generated by the selected node in the current session while in fullscreen mode.. but I ran out of time last night.

I'll keep you posted.

Thanks for the coffees! I really appreciate the support!

BWDrum commented 1 year ago

Definitely encourage the history idea. Being able to arrow back and forth on image history in fullscreen would be very useful, good idea.

Two things:

  1. Any way to "preset" a node for fullscreen before the first image is completed?

  2. And/or a hotkey for fullscreen view, although it seems it's node specific so not sure how that would work. (I'd settle for Save Image Node as the default.) 

Thanks again for your hard work.

TinyTerra commented 1 year ago

The latest push 0ea1a98f81a02217f47cf3ddd53554225332e842 has updated this further :)

Slideshow Mode

Toggled On - Automatically jumps to New images as they are generated (Black Background) Toggled Off - Holds to the current user selected image (Light Background)

Fullscreen Overlay

Toggles display of a navigable preview of all the selected nodes images Toggles display of the default comfy menu

Node right-click context menu options

'Fullscreen (ttN)' - Turn on fullscreen mode 'Set Default Fullscreen Node (ttN)' - Sets the currently selected node as the default Fullscreen node 'Clear Default Fullscreen Node (ttN)' - Clears the assigned default Fullscreen node

Shortcuts

'shift + up arrow' => Open ttN-Fullscreen using selected node OR default fullscreen node

Shortcuts in Fullscreen

'up arrow' => Toggle Fullscreen Overlay

'down arrow' => Toggle Slideshow Mode

'left arrow' => Select Image to the left

'shift + left arrow' => Select Image 5 to the left

'ctrl + left arrow' => Select the first Image

'Right arrow' => Select Image to the right

'shift + right arrow' => Select Image 5 to the right

'ctrl + right arrow' => Select last Image

'esc' => Close Fullscreen Mode

TinyTerra commented 5 months ago

A few more updates from V2

Changed open shortcut to 'shift + F11' Added Zoom functionality to fullscreen image Added click and drag to fullscreen image to reposition Added double click to reset the images zoom and position

Right click on a preview image to load prompt Added compare functionality, to swap between two specific images Added 'Toggle Autohide' button to comfy menu Added 'Toggle Slideshow Mode' button to comfy menu Added 'Ctrl+Wheel Toggle' button to swap default scroll/ctrl+scroll behaviour between zoom and scroll images