-
-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Add generate forever/cancel generate forever options when right-clicking generate button in deforum #966
Comments
Actually think I managed to figure this out via trial and error and some digging into the code of webui. Here is the code I added to my javascript>contextMenus.js file of webui for anyone else looking to add this functionality to deforum. Basically had to modify the contextMenus.js file in notepad and all I did was duplicate the existing txt2img_generate/txt2img_interrupt code and modified it to use deforum tags. To Use: Copy all of the code that appears below after the colon and paste over all the existing code in contextMenus.js file using notepad. The file appears in javascript folder of webui. Make sure to replace all of the original existing code found in the contextMenus.js file since the code below contains all the original code + the added deforum code. (note: you might want to make backup of original contextMenus.js file and save it in different location not in the webui folder in case something goes wrong or breaks, but my limited testing seemed to work fine): var contextMenuInit = function() {
}; var initResponse = contextMenuInit(); (function() { let generateOnRepeat_deforum = function() {
appendContextMenuOption('#deforum_generate', 'Generate forever', generateOnRepeat_deforum);
appendContextMenuOption('#deforum_interrupt', 'Cancel generate forever', cancelGenerateForever); })(); onAfterUiUpdate(addContextMenuEventListener); |
Is there an existing issue for this?
What would your feature do ?
If possible could the "generate forever/cancel generate forever" options found in txt2img of webui when right-clicking the generate button be added to the deforum generate button to allow for automatic continuous generations?
Proposed workflow
Additional information
Are you going to help adding it?
Did what I could, see my modified webui javascript>contextMenus.js code below to add generate forever/cancel generate forever functionality to deforum
The text was updated successfully, but these errors were encountered: