SD_API 1.22
Added 2023-06-28 12:12:01 +0000 UTCSD_API 1.22 !
New Features:
-One click launch automatic1111 from Touchdesigner
-Switch SD Models via SD_API
-Completely updated Dreamstudio API, including support for SDXL
-Multi-Controlnet - redesigned controlnet setup that adds an external controlnet operator per layer (released in 1.2)
-QOL improvements / organization across the operator
[removed the 'Outputlastframe' error message.]
Also - Updated version of match_color_histogram.
-Separate match color sliders per channel / mode
-Smooth histogram value to reduce noise
Comments
Hi, i am trying to get this working on a Mac, but having the issues as the others. I can get SD working in the browser but there is no communicaiton seeming to happen. I did notice inside your file there is an error saying 'Warning; File not found' and it's looking for a file inside the output_folder called settings_data.dat which doesn't seem to exist. (this is in project1/SD_API/filein1)
BreakItDown
2024-08-27 07:49:52 +0000 UTCDid you resolve this?
BreakItDown
2024-08-27 06:40:05 +0000 UTCSame issue :(
BreakItDown
2024-08-27 06:16:27 +0000 UTCHello !! I have a problem, as I am doing elektronnaut stable diffusion tutorial with SD_API. For no reason, in my TD , the SD_API is not able to run stable_difussion. everything is well installed, and in the OS X terminal I run correctly webui.sh and it opens stable diffusion, but the SD_API simply doesn't open it.. I think the problem is that SD_API tries to launch a .bat file, but on Mac OS it doesn´t work if you have any clue on this, please help! I am pretty sure that it is on the parsec_launch_webui component
Francisco Pérez Liébana
2024-07-17 12:52:50 +0000 UTCI get this error in the console when trying to use the APIL File "/Applications/TouchDesigner.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Applications/TouchDesigner.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/cv2/__init__.py", line 181 bootstrap() File "/Applications/TouchDesigner.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/cv2/__init__.py", line 76, in bootstrap raise ImportError('ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.') ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation. python >>> I checked my installation of python OpenCV and am on version 4.9 (which I believe to be latest) What steps can I take to trouble shoot this?
Thomas McLaughlin
2024-05-15 18:02:07 +0000 UTCalso on a mac and having this issue - would very much appreciate any potential solutions
Elliott Romano
2024-04-29 15:12:03 +0000 UTCan update would be sick!
J G
2024-04-10 21:22:39 +0000 UTCThis operator is a bit outdated for sure. I hope to have a few free days this month to dive in a freshen it up. I've been following automatic1111 development a bit less since comfyui has gotten more powerful / modular.
dotsimulate
2024-04-09 21:11:10 +0000 UTCAt first I downloaded your file and launching didn't automatically download automatic1111. So, I independently downloaded it and it works. It shows Automatic1111 connected but nothing is generating when I hit pulse. Another thing that I've noted it that launch.py doesn't launch program with argumenta while the webui.user.bat does it. Apart from that it works as normal on browser, I've added --api too.
Istharoth Astarte
2024-04-09 19:04:36 +0000 UTChey! im also having the same problem, were you able to find a way to solve this?
Avia W
2024-03-14 02:06:15 +0000 UTCHi same happening here!
Lautaro Ferrandi
2024-02-16 14:27:50 +0000 UTCHey dude -- awesome work. The launch webui pulse works fine for me at first -- but it automatically opens the webui in a Chrome tab and then the API in TD tells me its disconnected from Automatic1111. Any ideas?
Leo
2024-02-07 14:32:25 +0000 UTCIs there a way i can send you a screenshot ? Thru discord ? or email?
Samson Wong
2024-02-02 16:07:09 +0000 UTCI m currently using TD version 2022.24200
Samson Wong
2024-02-02 16:05:59 +0000 UTCThe TableMenu was added in Touchdesigner version 2022. So I'm guessing that is the issue. Using any TD version 2022 should fix if you can switch over. I'm using that method to allow options for many of the menus to update based on the server options.
dotsimulate
2024-02-02 00:35:10 +0000 UTCHi there, I m getting a few errors on the SD_API with the progress1 node, and progress node, " AttributeError: module 'tdu' has no attribute 'TableMenu' (project1/SD_API/progress1) warning: (parameter menusource: API Get) Traceback (most recent call last):............
Samson Wong
2024-02-01 19:39:00 +0000 UTCHi! First and foremost, thanks a million for your efforts on this - subscribed to the Patreon straight away. I've come quite far with installing this on MacOS, and the SD_API says it's connected to Automatic1111, but it doesn't generate an image, just a red pixel in the bottom right corner. I'm assuming a user error here, could you point me in the right direction?
Erwin
2024-01-25 11:38:20 +0000 UTCThis worked for me on a Macbook Pro M2. I pasted it into my terminal after confirming the WebUI worked on its own before bringing TD into the mix.
precords
2024-01-25 03:28:16 +0000 UTCHey. will be a bit easier to trouble shoot that on discord. Make sure automatic1111 is working in the webui like you would expect. and make sure when launching you are adding the --api commandlinearg. (if launching from TD , then that is already added.)
dotsimulate
2024-01-24 17:16:21 +0000 UTCit says Automatic1111 disconnected
Kai Rammsy
2024-01-24 15:29:17 +0000 UTChello! new to the patreon, love your workk, im having trouble having the API status in the sd api saying connected, any idea why?
Kai Rammsy
2024-01-24 15:28:46 +0000 UTCstable diffusion opens fine for me when I run it in python, https://www.youtube.com/watch?v=GGTm-H_ePgc&t=0s I followed that tutorial to download it. Now I was using a Windows computer and it gives me the error that I wrote to you before, on my Mac, which is the computer I use the same thing happens to me regularly, stable diffusion opens in the browser but when I try to do it from touchdesigner it doesn't open
Bruno Tripodi
2024-01-23 20:11:48 +0000 UTCIt looks like possibly Python is not on your PATH. but if automatic1111 is working on its own, then that shouldn't happen. it is best to first make sure automatic1111 is working like nromal in the browser before testing the api operator.
dotsimulate
2024-01-23 16:53:56 +0000 UTCIf the launch doesn't work from Touchdesigner, you can always launch the webui like normal but will have to add the --api flag to the commandline_args in the .bat file
dotsimulate
2024-01-23 16:52:46 +0000 UTCHello! how are you? I have a question, I am watching the elektronaut tutorial using the SD_API, but when I get to the point of pressing Launch webUI this message opens and it doesn't let me continue, Couldn't launch python exit code: 9009 stderr: Python not found; run without arguments to install from the Microsoft Store or disable this shortcut in Settings > Manage app launch aliases. Launch unsuccessful. Exiting. Press a key to continue . . . If you could help me I would appreciate it a lot! :)
Bruno Tripodi
2024-01-23 16:21:32 +0000 UTCGreat Thanks!
Ismael Abrego
2024-01-21 16:26:13 +0000 UTCYou should be able to add them to your automatic1111 models folder as you would normally with the webui. and in the A1111 parameter page, there is a Check + Update Models toggle. If that doesn't work, restarting the server will definitely work.
dotsimulate
2024-01-21 03:43:57 +0000 UTCHow can we add other models to the selection list on Settings - Model? Great API !!
Ismael Abrego
2024-01-21 02:19:03 +0000 UTCI'm using TouchDesigner 2023.11340 on a Macbook Pro, and I have launched Automatic1111 from my Terminal with --api. In the panel for SD_API in Touchdesigner, the Connection field shows 'on'. But when I click on 'Pulse' to generate frame, nothing happens. Where should I be looking at to fix it? Thanks!
Henry Hu
2024-01-20 17:10:01 +0000 UTCSorry to bother but it still does not work for me after I install the 2022.33910 version, same problem as before once I open then TD crashes, what other problems could be?
Fang Cui
2023-12-06 04:11:46 +0000 UTCNot quite sure. If you are able to send me a screenshot on discord, that might give me a bettter idea of what is happening.
dotsimulate
2023-12-05 22:18:32 +0000 UTChi, in my case when i click pulse cooking is never ending I'm having no error, nor any generated image. what I might doing wrong?
uncanny rover
2023-12-04 13:02:19 +0000 UTCHi. I've downloaded the stable-diffusion from Automatic1111 and successfully ran it in the local browser. But I don't see a folder named 'stable-diffusion-webui'. is that the same folder after I unzipped and updated the stable-diffusion? What is the default installing path for 'stable-diffusion-webui'? When I changed the 'SD Webui folder' path to the installing path and clicked the pulse, the command window said 'couldn't launch python'. is there something wrong with it? Doubts from a beginner.
Drif
2023-12-03 06:20:27 +0000 UTChey ! sorry for missing this. the folder is typically 'stable-diffusion-webui' You should be able to download and install automatic1111 from the Touchdesigner operator itself - in the 'a1111' parameter page, there is a 'More Automatic1111 Options' Pulse that will open a menu that will download the correct stuff and set the 'SD Webui Folder' parameter. If you have automatic1111 already downloaded and it runs on its own, then you should just use that one instead of installing a new one (although this is often a good way to fix random bugs with a1111, but more of a last resort). The folder path that you want to put in the 'SD Webui Folder' should be something like this - F:\testwebui\stable-diffusion-webui
dotsimulate
2023-11-27 18:50:35 +0000 UTCHi. I have a few issues running SD_API Firstly the folder I've downloaded is "stable-diffusion-webui-master" is this the same or not? It doesn't contain any folder named "venv" in it! So I face these errors after hitting Pulse in TD: fatal: not a git repository (or any of the parent directories): .git Commit hash: . . . Error code: 1 I don't know how to fix that.
Arash Baqipur
2023-11-23 02:38:44 +0000 UTChey ! I believe you want to save that instead of as plain text, but as a .sh file. Here is a youtube tutorial that seems to go over it all on mac. I haven't watched the entire thing but it looks like it covers all the steps and has clearly marked timestamps. https://youtu.be/WqxLbJdOHgA?si=MpS7hfZT1p7GgsqQ
dotsimulate
2023-10-15 17:07:09 +0000 UTCCan anyone upload a tutorial on this? I have a hard time understanding how to launch on mac. I have set up a new Plain Text Document in the Stable Diffusion Webui folder as "webui.sh --api" with the following text as instructed: set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS= --api --xformers git pull ./webui.sh --api What do I do next? (Sorry for the ignorance, not a programmer but a designer here!)
Wong Hin Lam
2023-10-14 22:12:16 +0000 UTCThis is due to using a pre-2022 version of Touchdesigner. My operator relies on the tdu.TableMenu (added in TD 2022) to dynamically update the SD model lists and a few other things, so using an older version of Touchdesigner will cause these to break.
dotsimulate
2023-09-25 15:23:08 +0000 UTCHi, I tried to open SD_API_1.22 file in my TD and it does open but there were so many errors occured. I hope I can show you my TD.. When I click the error X button on the Base op, the script error inside the network. Error: (Parameter Menusource: Model) Traceback (most recent call last): File "/SD_API", line "tdu.TableMenu(op('./engineMenu'))", AttributeError: module 'tdu' has no attribute 'TableMenu' (/SD_API) There are several more errors with error codes that have been replaced with different ones. (op('./engineMenu'))" If you need to see my TD screen shots, I would love to show you on discord. Thank you so much!
Jinkyu Kang
2023-09-25 14:47:01 +0000 UTCAh if you updated to the 2023 version, that will probably break SD1.22 That is an experimental build of the new upcoming version of TD. I would recommend going back to 2022.33910, as that is the latest production build and will work with SD1.22. The Update button that appears at the top right of Touchdesigner is a bit misleading sometimes, and I wish they made it a bit clearer about whether or not it was an experimental build. I've gotten several messages from people about this, and as far as I know it is fixed by going back to the production build.
dotsimulate
2023-09-24 21:51:45 +0000 UTCHi, I updated my touchdesigner to the newest version, but everytime I drag the SD_API tox file into td it just says TouchDesigner has encountered an error and must close then td crashes. Do you have any ideas why and how to fix it? Thanks. I tried on two different computers, both are not able to run.
Fang Cui
2023-09-23 11:23:44 +0000 UTCthank you! worked for me
anton feine
2023-09-11 07:37:13 +0000 UTCI am less familiar with the terminal on macos, but I believe what Hannu suggested should work. I will be testing the op / updating for m1/2 soon !
dotsimulate
2023-09-05 21:56:20 +0000 UTCTry changing the 'playback mode' or turning on 'Display last' Both are near the top of settings page 1.
dotsimulate
2023-09-05 21:54:51 +0000 UTCAny ideas why it only generates me a gray screen from inside TD? from the webui it works great, but generating a frame in TD keeps giving just blank frame. I see it generating inside the terminal
Marek Janiszewski
2023-09-05 19:40:55 +0000 UTCopen terminal, paste this and press enter: cd ~/stable-diffusion-webui;./webui.sh --api http://127.0.0.1:7860/
Hannu Ikola
2023-09-05 13:58:05 +0000 UTCHi, the discord link is invalid, could you please re send it again?
etto space
2023-09-03 18:29:38 +0000 UTCSorry for asking again but im new to all this terminal topics. I have to paste this text into a terminal and save it as an txt in my stable-diffusion-webui folder with the name .sh? Than in TD i need to write in the comandlines --api and then pressing pulse?
anton feine
2023-09-03 06:49:18 +0000 UTCHey! The launch webui will not work for mac currently. You will need to launch from the stable-diffusion-webui folder with a .sh file I believe this should work if you save as Launch_api.sh set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS= --api --xformers git pull ./webui.sh --api
dotsimulate
2023-09-03 05:03:53 +0000 UTCHi, I´m on a macbook and the launch webui button in TD doesn't open my terminal. What do i wrong?
anton feine
2023-09-02 20:52:35 +0000 UTCHi, your discord link is invalid, could you please send a new one?
Manu.Vision
2023-07-30 15:04:10 +0000 UTCIt happened to me too! Wondering if you all have a lead to resolve this?
Marshall Wang
2023-07-27 04:27:33 +0000 UTCcould you answer me that? thank you very much~
2023-07-25 12:50:57 +0000 UTCHello, when I selected my webui path and set up my Python path, I clicked on pulse and it seemed to download something, and then at the end it appeared "Press any key to continue..."
2023-07-25 12:50:15 +0000 UTChttps://www.youtube.com/watch?v=CpnaogqbT70 Found this old overview and uploaded to youtube. Slightly outdated but only touches on the basic settings / may still be helpful for many
dotsimulate
2023-07-19 23:17:29 +0000 UTCApologies Vesvolod, I didn't mean to delete your error message comment. Glad things are working for you !
dotsimulate
2023-07-19 23:15:47 +0000 UTCok, now I understand that either the case is in realtime mode (toggle) or in a poorly functioning ssd. I can't say more precisely, but so far it works
Vsevolod Taran
2023-07-18 15:09:21 +0000 UTCVsevolod Taran
2023-07-18 11:23:57 +0000 UTCAwesome. glad it is working for you !
dotsimulate
2023-07-12 16:48:26 +0000 UTCwith --api after webui.sh is working. Thank you.
Atakan Kızıltan
2023-07-12 10:04:04 +0000 UTCYou need to launch the webui on mac with --api after webui.sh Hope that makes sense file should look something like this: set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS= ./webui.sh --api
dotsimulate
2023-07-12 02:20:27 +0000 UTChaving the same issue on mac
Anya Tran
2023-07-09 16:55:03 +0000 UTCDoes it work on MacBook? My automatic1111 webui and Python work correctly using terminal, but when I clicked the generate button on TD it does not work. Thank you.
Atakan Kızıltan
2023-07-09 07:23:20 +0000 UTCthe python path was not correct. That did the trick! Ty
Kijin
2023-07-07 14:11:07 +0000 UTCIm not sure exactly why that would be. Are you launching from the SD_API operator in touchdesigner? As far as I know, you need to have python and git both added to PATH on PC, but I believe thats the only requirement.
dotsimulate
2023-07-06 09:14:12 +0000 UTCWhen i launch the webUI through the API, the terminal gives me the message "Couldn't launch python".. You know how to fix that issue? Im using the automatic1111 webui and Python 3.10.6. I cant connect the API with the webui :(
Kijin
2023-07-05 19:53:10 +0000 UTCI haven't heard of that happening before. I am using the second most recent production build of TD 32260
dotsimulate
2023-07-03 00:07:13 +0000 UTCWhat version of TD are you using? it crashed when I dragged your file to TD
Zhen Wu
2023-07-01 17:31:35 +0000 UTC❤️
Bileam Tschepe
2023-06-29 09:26:23 +0000 UTC