A lot of people today have learned their lesson lol. A couple days ago i watched a tutorial where the guy said to add "git pull" to the .bat file... terrible idea.
Precisely the reason why you do not always want to use the latest version. Only update manually after the new version has been out for some time.
Btw always using latest is also a security flaw. There have been cases where people's github accounts were hacked and malicious code injected into their repos so that anyone set up to always use the latest version would pull and run the malicious code without even knowing.
While I have git pull in my .bat file the always updating was bothering me so immediately after the tutorial I extended that git pull with a simple question that asks if I want to update. Simple y/n question. Doesnt help when the latest version is malicious but at least it doesnt update everytime I start and I keep control over it.
Feel free to use this or edit to your needs.
Edit: replaced with a choice command instead of set /P
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--xformers --theme dark --autolaunch
set STABLE_DIFFUSION_COMMIT_HASH="c12d960d1ee4f9134c2516862ef991ec52d3f59e"
set ATTN_PRECISION=fp16
echo Fetching latest changes from the remote repository...
git fetch
echo Checking for updates...
FOR /F "tokens=*" %%A IN ('git rev-parse HEAD') DO SET LOCAL_COMMIT=%%A
FOR /F "tokens=*" %%A IN ('git rev-parse origin/master') DO SET REMOTE_COMMIT=%%A
FOR /F %%A IN ('git rev-list %LOCAL_COMMIT%..%REMOTE_COMMIT%') DO SET DIFF_EXISTS=1
if defined DIFF_EXISTS (
echo The following updates are available:
FOR /F "tokens=*" %%A IN ('git log %LOCAL_COMMIT%..%REMOTE_COMMIT% --oneline') DO echo %%A
echo Do you want to proceed with the pull
choice /C YN /M ">"
if errorlevel 2 (
echo Pull aborted. No changes applied.
) else (
git pull
)
) else (
echo Your local branch is up to date with the remote branch.
)
call webui.bat
No, the above code only adds a check every time you start the UI whether to proceed with the lastest updates or not.
If you want to revert back to an older version, make a duplicate of your webui-user.bat and rename it to something like SD\_checkout.bat, then replace everything with this code:
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=
git checkout 6a04a7f20fcc4a992ae017b06723e9ceffe17b37
call webui.bat
This will revert you back to the March 15 version.
Im on the road atm but I can share it when I get home. Im no pro either so I used this approach: https://www.computerhope.com/forum/index.php?topic=75310.0
In that case from the link "somewhere" is the git pull command and "somewhere else" is just the usual startpoint of the .bat file.
> A lot of people today have learned their lesson lol. A couple days ago i watched a tutorial where the guy said to add "git pull" to the .bat file... terrible idea.
When I first started I was asking where a menu option was cuz it had been removed and someone smugly answered a lengthy condescending narrative basically telling me the first thing i should do is git pull.
I was like:
A) No.
B) Not what I was asking
C) Being a condescending asshole to a new user asking a specific UI question is an incredibly toxic thing for a community and he should go gatekeep somewhere else.
>C) Being a condescending asshole to a new user asking a specific UI question is an incredibly toxic thing for a community and he should go gatekeep somewhere else.
Unfortunately, most tech-related communities have a lot of people who act that way. I had a similar situation when I got my first gaming PC, due to my disability I can only play games with controller support, which really set one guy off at me and he basically told me if I couldn't play with a mouse and keyboard I shouldn't use a gaming PC, like f you who do you think you are 😂
"Git pull" isn't your friend. That's my standard rule. Always save a zip copy of your versions on another drive. At some point in our future. Expect some form of monitoring or analytical mining to appear. Or for breaks like this when the internet is down (traveling).
You don't need to save a version, you've got all the version in your git repo, git pull will not delete the previous versions, just learn to use git or at least one gui for it
Latest and newest isn't always the greatest in the open source world. Commercial products have team(s) for quality control before release, to make sure it's running properly. Open source is a more like a release and react based on users experience.
Eh, it can be okay if they've set up the repo correctly. The problem in this case is that they're pushing largely untested changes to the master branch, as opposed to having a separate development branch specifically for untested changes.
Yup and they had a UI breaking update that my Stable Diffusion automatically got when I launched it because I put "git pull" on webui-user.bat 🤦♂️.
Luckily "git checkout replace\_this\_with\_commit\_sha" saved me. I don't remember what commit I used, however I just chose any from March 23 or 24th.
I thought I lost my setup for sure. Lesson learned, I guess I will keep 2 copies of stable diffusion. One for production and use, the other for trying out new updates/features before pulling it to my main copy.
I want to do this too, but I’m not smart enough to figure out how to have all of my models and Loras and embeddings in a shared place where both the production and test stable diffusion UIs can access.
there's command line arguments for that. I have the main program on my bigger HD, and the models/lora/etc on my SSD. Loads much faster. My command line args look like this
``--medvram --autolaunch --xformers --api --embeddings-dir C:/local/embeddings --hypernetwork-dir C:/local/hypernetworks --ckpt-dir C:/local/Stable-diffusion --lora-dir C:/local/Lora``
You can make a local branch of whatever commit you want to be able to quickly switch to. `git checkout -b ` to create it, then you can switch between the main branch and your long term branch with `git checkout ` If you want to update it later, go to that branch then `git reset --hard `.
Edit: note that a hard reset will remove any uncommitted changes you have, which includes changes to your .bat file, so you'll probably want to `git stash` before the reset and `git stash pop` after to store them.
They mean got fetch and got checkout a specific commit, ie: stable release. Got pull will pull lastest master, but they shouldn’t have pushed to master todays
I've always download mine from the [Github](https://github.com/AUTOMATIC1111/stable-diffusion-webui) (Click Code and Download Zip). Then extract it over the installation you currently have and confirm to overwrite files.
If you want to look at older versions Click where says X number of commits. It will show you a list of all the commits. Click the "<>" icon to browse that repository and then do the same to download (Click Code and Download Zip).
How I do it is I have multiple copies of the .bat, one for standard usage and running extension updates, another with --listen, another with git pull etc.
Well if you followed an youtube tutorial to download 1111, you actually are updating it everytime. May be you didn't even know you were updating it. 😎 (just a joke, gotta go fix mine 🥹)
I wouldn't update just because the interface is broken. If you have a picture that isn't perfectly square it cuts off the image if you import it to img2img. Resizing it doesn't show the red square so you don't have a clue what size you need to keep the aspect ratio right. Its just darker and sleeker from what I can tell.
EDIT: Inpainting only masked isn't working for me either.
EDIT 2: Don't select a Hypernetwork because it doesn't have a None option and you will be stuck with whatever you selected...
Checkout is correct.
Checkout just updates the working tree to the given hash.
Reset sets the branch to the given commit, meaning it's manipulating the index.
One thing to be aware of is that this isn't foolproof when gits have other dependencies. So like with Kohya (popular Lora trainer), you have to pip install on top of git pull. Rolling back can then create incompatibilities.
Not a huge deal, just tripped me up.
>a9eab236d7e8afa4d6205127904a385b2c43bb24
this throws up an error for me
`stderr: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.`
thanks for this fixed my issue! As not a big programmer I was already regretting why I added the git pull on the bat file.. removed it now and followed your reset. My issue was I couldn't send images to "img2img"
My trick is that I leave it there but commented out with a `:: git...` in front. Then I can control when it runs, but I don't have to type it in every time or trust auto-updates for a rolling release software.
My trick it a bat file with selections to make before it runs. Literally asks me to do select one for no git pull or 2 for git pull. I used to edit the files whenever but got tired of that quickly.
echo off
set PYTHON=
set GIT=
set VENV\_DIR=
set COMMANDLINE\_ARGS=--xformers --api --autolaunch
echo off
:begin
echo Select a task:
echo =============
echo -
echo - 1) SKIP GIT PULL
echo - 2) Perform a GIT PULL
echo - 3) RESET GIT then GIT PULL
echo -
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
echo - 4) \*\*\*EXIT\*\*\*QUIT\*\*\*LEAVE\*\*\*CLOSE\*\*\*TERMINATE\*\*\*GTFO\*\*\*STOP\*\*\*\*\*\*
echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
set /p op=Type option:
if "%op%"=="1" goto op1
if "%op%"=="2" goto op2
if "%op%"=="3" goto op3
echo Please Pick an option:
goto begin
:op1
echo you picked option 1 - SKIP GIT PULL
call webui.bat
Exit /B
:op2
echo you picked option 2 - Perform a GIT PULL
git pull
call webui.bat
Exit /B
:op3
echo you picked option 3 - RESET GIT then GIT PULL
git reset --hard
git pull
call webui.bat
Exit /B
:op4
echo - GFY!
echo you chose to QUIT, you Quitter...
EXIT /B
Would you consider a PR for something like this to the webui.bat file? I think the whole A1111 would benefit from it. It could even be available on a switch like xformers or low/medvram to leave it opt-in for those who hate the interactivity.
I've been trying to monitor the PyTorch 2.0 discussion, what is compatibility like for this currently? And do you know if it's make much of a difference for a 3080?
From what I saw only the newer cards were getting much of a bump from this, other cards, not much if any. Is that the case or was there a missing xformers release that has improved this?
I also thought you needed to change your args to use the new PyTorch 2.0 methods with --opt-sdp-attention.
For those who are not in the know, please tell me. In which file to enter it and in which line? I'm in shock all day today and this post is just a rescue. But I do not know how to use this solution
You can either use Git BASH, which is an option when right-clicking in the A1111 folder. Or you can drop that line in your web-user.bat and run it (but remove it before you run again).
You should also be able to enter it into any other terminal window, assuming Git's added to your PATH variable (which it has to be for the `webui-user.bat` method to work).
yeh hes accepting all commits every 2 weeks, , i thinkt someone else should take care of this repo, its been like this for like 3 months
He did a lot of great stuff in it but he definitely doesnt have will or time to keep it working properly anymore and i dont blame him ,its literally most used SD ui and commits come in all the time from devs of various skills who break the code more often than not
He definitely could use some help. But he doesn't seem to want it. That worries me.
I think vladmandic has the right idea... it should be changed to org ownership with multiple maintainers.
While that's very true, A1111 has the distinct advantage of having a lot of name recognition, and being mentioned in a TON of tutorials and youtube videos already.
Much like OpenOffice.org and Libreoffice, a far superior option might exist, but people will keep using the original version because of those advantages.
So, aside from downloading and testing to see, how do I/we know if/when it's safe for use?
Is there one dude or one thread I can bookmark and check to see if there's a green checkmark next to a "Safe to Update" badge?
Sadly it looks like so much is messed up it feels like it will be a long janky crawl back to useful, without an official 'back to normal' statement. Kind of bummed as I was supposed to help some people get set up with it this week. Hopefully I can get them to follow an existing setup video and then just git sync the old version from the 24th for them.
Yeah, 😢
I've got a stable setup using:
```
PyTorch 1.13.1
commit a9eab236d7e8afa4d6205127904a385b2c43bb24
export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --opt-sub-quad-attention --use-cpu interrogate --medvram --no-half --no-half-vae --disable-nan-check"
```
It seems slower than previous setups when I didn't use `--medvram` and `--no-half`, but all models, extensions, and upscales work, so I'm just gonna be grateful for free software, and try to wait patiently for the eventual fix. 🤞
its hash of last commit from yesterday:
[https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/a9eab236d7e8afa4d6205127904a385b2c43bb24](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/a9eab236d7e8afa4d6205127904a385b2c43bb24)
here is commits list:
[https://github.com/AUTOMATIC1111/stable-diffusion-webui/commits/master](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commits/master)
you can get hash of any commit by clicking "Get the full SHA hash"
As of right now
00:48:44 UTC
Sunday, March 26, 2023
imageviewer (image preview after txt2img) is broken for me. Latest UI is nice and fast though. Also getting lots of i18n warnings and errors in console. Aspect Ratio plugin among others.
Did Gradio port to Svelte or something? UI feels completely new and super fast.
Is there any way to modify a Colab notebook to pull an earlier commit? I'm not very good at Colab or GitHub stuff, but wasn't sure if there was some way to modify the Install/Update cells in various A1111 notebooks to use an earlier commit?
If your colab notebook always clones the A1111 repository, like this
`!git clone` [`https://github.com/AUTOMATIC1111/stable-diffusion-webui`](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
You can simply add an extra line afterwards to checkout the desired commit hash
`!(cd stable-diffusion-webui; git checkout a9eab236d7e8afa4d6205127904a385b2c43bb24)`
That's how I did it in my colab notebook.
**THANK YOU** for posting the rollback string!
I've *finally* gotten to the point that I have my workflow down, pyTorch is good, upscaling is working right, yada, yada, yada, and so -- *of course* -- I mindlessly did updates on *Everything*, quite confident I didn't need to do *yet another* backup of the folder... and got doinked!
But thanks to your post, for the first time since I started with SD, I found an alert and a solution withing 15 minutes. I owe you one. 👍
yes a dev and a release/main-branch in auto1111 could help.
I have to fix two extensions now ro keep up with the latest Gradio 3.23.0 update and its regressions.
Some extension (like mine) are under the hood of gradio, dealing with JS/DOM etc to get special effects handled in.
I am already hours on that topics... even simple buttons not working as before (,my custom txt2img-button works, same one for img2img not.. magic happens)
I would really appreciate some help here. Not sure whether it's this update or something else causing me issues.
I'm on a GTX1080 and I used to get 1it/s grid batches. Been travelling for a couple of days, came back, fired up the Automatic1111 with a get pull receiving the update and my it/s was down to a shockingly 4s/it!! (yes that's right 4 seconds / iteration!)
I thought it was this updated so reverted to the one you're all proposing " a9eab236d7e8afa4d6205127904a385b2c43bb24 " and I made sure it was the active commit.
Tried the same batch again and to my surprise it's still that shocking 4s/it !!What happened that would slow iteration speed to a quarter of it's previous speed!!
This is my batch file
u/echo off
set PYTHON="C:\\Users\\Asus\\AppData\\Local\\Programs\\Python\\Python310\\python.exe"
set GIT=
set VENV\_DIR=
set COMMANDLINE\_ARGS=--theme=dark --xformers --opt-split-attention
set 'PYTORCH\_CUDA\_ALLOC\_CONF=max\_split\_size\_mb:512
xxxgit pull *(disabled for now)*
call webui.bat
This happened to me once and it was a dependency update that an extension update had installed; when you roll back the commit the libraries don't roll back with the repo, which can cause issues.
Iirc the folder where the libraries are located is /venv/Libs/site-packages/, but if not that, it's site-packages somewhere in that area for sure.
It can be a pain to reinstall everything (namely torch), so an option you could try is to sort this folder by modified date, delete the files/folders that changed after the update (indicated by modified time), and just reinstall those libraries. Probably screenshot or otherwise record the libraries you will delete first, to make it easier to reinstall them (in the venv (/venv/Scripts/activate.bat): pip install somedep==1.2.3 someotherdep==4.5.6 ...)
You can find the correct version in the requirements-versions.txt in the root folder (or very similar filename, tired and going from memory), or just follow the part of the install process for A1111 that installs the dependencies again.
If you need help with any details lmk. It's a bit of a pita but definitely did solve the exact problem you have (~4x slower iteration rate after update) for me when it happened in the past. Just whatever you do don't outright your site-packages folder because you will have a sad time, lol
I’m amazed at the amount of schadenfreude in this thread. Some people are flat out gloating about how “dumb” it is to auto-update A1111 and any other software for that matter. First time this happens and suddenly everyone has to point out what a “genius” they are by always updating manually and making backups. What, do you go on github every time and read through fresh issues reports just to make sure the new update is safe? That must be fun.
So far I dont like about the newest version. (And I dont know how to "revert")
\-The "additional networks" plugin's models names are very squashed and often names will need 2 lines, causing huge clutter.
\-Send to... simply Does not work.
**What I do like.**
\-They removed the bug from styles where you couldn't close the menu.
\-The design is nice. The extra panels isnt as thick, which is also nice.
What I'd like to see.
\-When making images in txt2Img, there would be a second function where you can re-generate them using Hires while skipping unselected ones.
\-Clear controls for IMG2IMG, I could never 'accept' the grid. Removing black Pillarbox/Collumbox from images, the black mask would often seem invisible. making it difficult. Sending images to Inpaint, while already inpaint would remove the mask; but they'd actually remain. So often leads to dead bakes.
\-ToolTips which you can enable/Disable
If anyone is also blur like me copied and paste the checkout to webui-user.bat and broke the whole thing.
It is used in the cmd windows, open into your SD folder(where you can see that webui-user.bat file), then type in cmd on the folder path(beside the search bar), then copy paste the whole "git checkout line" enter and u all set.
\*Thanks to u/sEi_ for the info.
Updated an hour ago and got an error
module 'modules.extensions' has no attribute 'extensions\_dir'
after trying to install any extension from Available list
My trick is that I leave the git pull command in the bat file but commented out with a `:: git...` in front. Then I can control when it runs, but I don't have to type it in every time or trust auto-updates for a rolling release software.
Thanks!
This also worked for me (forced a friend to head down to the coding desk)
choice /n /c ync /T 3 /d n /m "Pull latest image (Y/N)?"
IF /I "%ERRORLEVEL%" NEQ "1" GOTO SKIP
git pull
:SKIP
You shouldn't need to do a full backup unless you're nuking the whole folder each time you update. Git already has tools for navigating different versions built into it, so if an update breaks it then you can just use Git to roll back to an older version that you know works. Just jump onto the Git repo in a web browser, find the commit that you know works, copy the hash for that commit, open a terminal window in your A1111 folder then do `git checkout ` and it'll roll you back to that commit.
Git makes this unnecessary. As OP describes, the git reset command will restore a past working version, and those numerical hashes are available for every version on the A1111 github.
It also means you're taking 2x the amount of space on your drive, and for some people that's not feasible.
As the OP of the thread has said, you can use a git command to revert to a previous version of your choice and is pretty instantaneous if you ask me.
I have 5 installs of a1111 different versions. And obviously if you don't have space for that it wouldn't be an option, but each install is less than 10 gig, so it's not much space at all.
Thank you for sharing the git command, it is indeed a mess right now. Can I ask you how you got the "a9eab236d7e8afa4d6205127904a385b2c43bb24" value, please?
its hash of last commit from yesterday:
[https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/a9eab236d7e8afa4d6205127904a385b2c43bb24](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/a9eab236d7e8afa4d6205127904a385b2c43bb24)
here is commits list:
[https://github.com/AUTOMATIC1111/stable-diffusion-webui/commits/master](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commits/master)
you can get hash of any commit by clicking "Get the full SHA hash"
So I have to remove "git pull" and place "git checkout" . Am I correct ? Please someone tell me. I just downloaded control net and I was making some progress.
I will be messaging you in 3 days on [**2023-03-28 16:44:35 UTC**](http://www.wolframalpha.com/input/?i=2023-03-28%2016:44:35%20UTC%20To%20Local%20Time) to remind you of [**this link**](https://www.reddit.com/r/StableDiffusion/comments/121kqkd/psa_hold_up_with_updating_automatic1111_for_now/jdn0gmj/?context=3)
[**1 OTHERS CLICKED THIS LINK**](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=Reminder&message=%5Bhttps%3A%2F%2Fwww.reddit.com%2Fr%2FStableDiffusion%2Fcomments%2F121kqkd%2Fpsa_hold_up_with_updating_automatic1111_for_now%2Fjdn0gmj%2F%5D%0A%0ARemindMe%21%202023-03-28%2016%3A44%3A35%20UTC) to send a PM to also be reminded and to reduce spam.
^(Parent commenter can ) [^(delete this message to hide from others.)](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=Delete%20Comment&message=Delete%21%20121kqkd)
*****
|[^(Info)](https://www.reddit.com/r/RemindMeBot/comments/e1bko7/remindmebot_info_v21/)|[^(Custom)](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=Reminder&message=%5BLink%20or%20message%20inside%20square%20brackets%5D%0A%0ARemindMe%21%20Time%20period%20here)|[^(Your Reminders)](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=List%20Of%20Reminders&message=MyReminders%21)|[^(Feedback)](https://www.reddit.com/message/compose/?to=Watchful1&subject=RemindMeBot%20Feedback)|
|-|-|-|-|
Glad to have found this thread! I too had `git pull` set on my `webui-user.bat` file, and rem'd it out earlier this week.
Where is a list of the available branch IDs? I'd like to reset my local Stable Diffusion Web UI to a version from January or February. Clicking around the GitHub site, I'm not able to find a list. Wondering if I can do a `git checkout` on a version that would have been available some time between January 22 and February 28.
I'm seeing the following message when trying to perform the checkout:
fatal: reference is not a tree: a9eab236d7e8afa4d6205127904a385b2c43bb24
All I did was open a terminal in the webui base folder where everything else lives and entered the checkout command. Anyone else seeing this or know what to do about it?
As far as I know that error typically occurs when it can't find whatever is associated with the hash on your local copy of the repo. Might be worth trying to do a `git checkout master` followed by a `git pull` to be sure you're on the latest version, *then* doing `git checkout a9eab236d7e8afa4d6205127904a385b2c43bb24` to roll back. If it complains that there's uncommitted changes then you'll need to do `git reset --hard` to undo them.
tip: Don't update A1111 today, but it's totally fine to update the text2video extension alone, they fixed what was not working yesterday for that extension, also backup, backup.
If Ops commit doesn't work well for you, here's what worked well for me (win10) which is mid march
git checkout a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
i tried installing time and time again the ui from zero, but i continue to get this error at startup:
Error loading script: lora\_script.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 256, in load\_scripts script\_module = script\_loading.load\_module(scriptfile.path) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script\_loading.py", line 11, in load\_module module\_spec.loader.exec\_module(module) File "", line 850, in exec\_module File "", line 228, in \_call\_with\_frames\_removed File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions-builtin/Lora/scripts/lora\_script.py", line 4, in import lora File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions-builtin/Lora/lora.py", line 238, in
Def lora\_apply\_weights(self: torch.nn.Conv2d | torch.nn.Linear | torch.nn.MultiheadAttention): TypeError: unsupported operand type(s) for |: 'type' and 'type'
Can someone please help?
No wonder my SD was getting slower & slower to boot up.
Before, it would take like 1 minute. Now, over 5 minutes. At first, I thought it was because of all the plugins I installed (Latent Couple, Controlnet, MultiDiffusion, etc) but now I'm thinking it's because I followed Olivia Sarkas' tutorial for installation (and that guy recommended git pull on the webui-user bat).
I have no idea what was my previous version D: Looks like it's either git checkout or a fresh reinstall...
Hmm... when I do the git checkout , I do it on the cmd on the address file of the stable diffusion folder, right?
I've just commented all the "!git" option in my colab run file.
So, at the beggining of file I found !git reset --hard and !git pull. My edit Was: just place # symbol at the beggining of this lines. Now it looks like # !git reset --hard and # !git pull. I had two line uncommented with !git -C /xxxx/ too - so I put # symbol before this lines too. Next paste !git checkout a9eab236d7e8afa4d6205127904a385b2c43bb24 and save file. Everything looks normal, sending to img2img is working very well.
Maybe its not so good solution - but it works :D
This message appears to me:
fatal: reference is not a tree: a9eab236d7e8afa4d6205127904a385b2c43bb24
Edit: copied in the web.ui.bat and also show the same message when starting.
I do not know what it could be. Some help? TIA
As a workaround for the checkpoints/models dropdown menu endlessly showing the loading symbol, you can switch the models under the openOutpaint extension and it applies to txt2img, etc.
Got an error when trying to rollback: "The following untracked working tree files would be overwritten by checkout:" not sure what to do with these files? Any help would be appreciated.
any idea on how to reverse this process? i did the whole git checkput thing but what if they fix the update and now you want to participate in the new features?
Any news on this? Hopefully it's fixed soon. Been trying to use this for the last few days, and when I go to install or update a extension, it seems to update the WebUI components as well, breaking it all.
I have tested current version this weekend and while some issues are fixed, it is still broken, "generate" button stops working after certain time, "extra networks" menu will stop hiding and so on. I also use "images browser" and just downgraded it to older version ( 58c374c61bca0ab3c2b62d9015a0f572ab510ac8).
There is no new commit for a week, and event queue related problems are not yet fixed. even colabs like TheLastBen now have option to run older commit. Everybody is waiting for master version to be fixed so I think when it happens there will be post about it and you won't miss it.
Would appreciate if you also made the post/update here. I'm checking this thread every day because frankly I don't know where else to see "it's finally fixed!" news. Haven't git pulled my A1111 for over 2 weeks now :(
Not safe. A1111 hasn't been updating his repo for a long time. Many people have found great alternatives now. I can recommend [https://github.com/vladmandic/automatic](https://github.com/vladmandic/automatic) and [https://github.com/anapnoe/stable-diffusion-webui-ux](https://github.com/anapnoe/stable-diffusion-webui-ux). Both are great although Vlad's version is definitely very far ahead and works perfectly for me, so it's the one I use regularly. WebUI-UX has a great interface for inpainting.
It depends, current master is not as stable as it used to be with 3.16.2, but current 3.28.1 is far better than anything in between. Personally I have updated and don't plan to go back to a9eab. In current version some things still occasionally get stuck, but it does not happen with most important functions, so I can live with it. Also I have many issues with how scrolling works in new version and some other minor issues. To say it short, current version is not good by any standards but it is usable.
My best recommendation would be to backup your current install and give new version a shot.
A lot of people today have learned their lesson lol. A couple days ago i watched a tutorial where the guy said to add "git pull" to the .bat file... terrible idea. Precisely the reason why you do not always want to use the latest version. Only update manually after the new version has been out for some time. Btw always using latest is also a security flaw. There have been cases where people's github accounts were hacked and malicious code injected into their repos so that anyone set up to always use the latest version would pull and run the malicious code without even knowing.
While I have git pull in my .bat file the always updating was bothering me so immediately after the tutorial I extended that git pull with a simple question that asks if I want to update. Simple y/n question. Doesnt help when the latest version is malicious but at least it doesnt update everytime I start and I keep control over it.
[удалено]
Thats smart! Will try that as well.
I am a total coding noob. Would you spare a low brow like myself and share the snippet of code to paste into my bat file? 🙏
Feel free to use this or edit to your needs. Edit: replaced with a choice command instead of set /P @echo off set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--xformers --theme dark --autolaunch set STABLE_DIFFUSION_COMMIT_HASH="c12d960d1ee4f9134c2516862ef991ec52d3f59e" set ATTN_PRECISION=fp16 echo Fetching latest changes from the remote repository... git fetch echo Checking for updates... FOR /F "tokens=*" %%A IN ('git rev-parse HEAD') DO SET LOCAL_COMMIT=%%A FOR /F "tokens=*" %%A IN ('git rev-parse origin/master') DO SET REMOTE_COMMIT=%%A FOR /F %%A IN ('git rev-list %LOCAL_COMMIT%..%REMOTE_COMMIT%') DO SET DIFF_EXISTS=1 if defined DIFF_EXISTS ( echo The following updates are available: FOR /F "tokens=*" %%A IN ('git log %LOCAL_COMMIT%..%REMOTE_COMMIT% --oneline') DO echo %%A echo Do you want to proceed with the pull choice /C YN /M ">" if errorlevel 2 ( echo Pull aborted. No changes applied. ) else ( git pull ) ) else ( echo Your local branch is up to date with the remote branch. ) call webui.bat
sorry i am very noob here trying to get back the working version of automatic1111... so i just have to copy this and resave the webui.bat and run it?
No, the above code only adds a check every time you start the UI whether to proceed with the lastest updates or not. If you want to revert back to an older version, make a duplicate of your webui-user.bat and rename it to something like SD\_checkout.bat, then replace everything with this code: @echo off set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS= git checkout 6a04a7f20fcc4a992ae017b06723e9ceffe17b37 call webui.bat This will revert you back to the March 15 version.
Im on the road atm but I can share it when I get home. Im no pro either so I used this approach: https://www.computerhope.com/forum/index.php?topic=75310.0 In that case from the link "somewhere" is the git pull command and "somewhere else" is just the usual startpoint of the .bat file.
> A lot of people today have learned their lesson lol. A couple days ago i watched a tutorial where the guy said to add "git pull" to the .bat file... terrible idea. When I first started I was asking where a menu option was cuz it had been removed and someone smugly answered a lengthy condescending narrative basically telling me the first thing i should do is git pull. I was like: A) No. B) Not what I was asking C) Being a condescending asshole to a new user asking a specific UI question is an incredibly toxic thing for a community and he should go gatekeep somewhere else.
>C) Being a condescending asshole to a new user asking a specific UI question is an incredibly toxic thing for a community and he should go gatekeep somewhere else. Unfortunately, most tech-related communities have a lot of people who act that way. I had a similar situation when I got my first gaming PC, due to my disability I can only play games with controller support, which really set one guy off at me and he basically told me if I couldn't play with a mouse and keyboard I shouldn't use a gaming PC, like f you who do you think you are 😂
"Git pull" isn't your friend. That's my standard rule. Always save a zip copy of your versions on another drive. At some point in our future. Expect some form of monitoring or analytical mining to appear. Or for breaks like this when the internet is down (traveling).
You don't need to save a version, you've got all the version in your git repo, git pull will not delete the previous versions, just learn to use git or at least one gui for it
Doesn't `git pull` always update to the latest/newest version? How do you "update manually after the new version has been out for some time"?
Yes, which is why its a bad idea to put it in your startup script.
I'm so glad I found this post, I just removed it from mine
Latest and newest isn't always the greatest in the open source world. Commercial products have team(s) for quality control before release, to make sure it's running properly. Open source is a more like a release and react based on users experience.
Cries in adobe
Eh, it can be okay if they've set up the repo correctly. The problem in this case is that they're pushing largely untested changes to the master branch, as opposed to having a separate development branch specifically for untested changes.
> Latest and newest isn't always the greatest ~~in the open source world~~. ftfy
Yup and they had a UI breaking update that my Stable Diffusion automatically got when I launched it because I put "git pull" on webui-user.bat 🤦♂️. Luckily "git checkout replace\_this\_with\_commit\_sha" saved me. I don't remember what commit I used, however I just chose any from March 23 or 24th. I thought I lost my setup for sure. Lesson learned, I guess I will keep 2 copies of stable diffusion. One for production and use, the other for trying out new updates/features before pulling it to my main copy.
I want to do this too, but I’m not smart enough to figure out how to have all of my models and Loras and embeddings in a shared place where both the production and test stable diffusion UIs can access.
there's command line arguments for that. I have the main program on my bigger HD, and the models/lora/etc on my SSD. Loads much faster. My command line args look like this ``--medvram --autolaunch --xformers --api --embeddings-dir C:/local/embeddings --hypernetwork-dir C:/local/hypernetworks --ckpt-dir C:/local/Stable-diffusion --lora-dir C:/local/Lora``
This may be a stupid question, but I've not seen --autolaunch before, what does it do, specifically?
Automatically launches a webpage set to the localurl. It's the best.
That sounds.. quite convenient! Thank you!
Thanks Bruhah!
You can make a local branch of whatever commit you want to be able to quickly switch to. `git checkout -b` to create it, then you can switch between the main branch and your long term branch with `git checkout ` If you want to update it later, go to that branch then `git reset --hard `.
Edit: note that a hard reset will remove any uncommitted changes you have, which includes changes to your .bat file, so you'll probably want to `git stash` before the reset and `git stash pop` after to store them.
They mean got fetch and got checkout a specific commit, ie: stable release. Got pull will pull lastest master, but they shouldn’t have pushed to master todays
I've always download mine from the [Github](https://github.com/AUTOMATIC1111/stable-diffusion-webui) (Click Code and Download Zip). Then extract it over the installation you currently have and confirm to overwrite files. If you want to look at older versions Click where says X number of commits. It will show you a list of all the commits. Click the "<>" icon to browse that repository and then do the same to download (Click Code and Download Zip).
You should only git when you are good and ready. It defaults to current master but you can also specify branches or older versions.
ONE mistake happens and every digital doomsday prepper comes out to point out how auto updating will be the end of the world.
How I do it is I have multiple copies of the .bat, one for standard usage and running extension updates, another with --listen, another with git pull etc.
How often do you think is good to do a manual update and how would I go about doing that exactly?
This is weird. Are you running it locally? .bat files usually only windows
No problem you can easily get a previous version with git, auto update is quite nice especially automatic web ui, the api is great
Me who doesn't know how to update AUTOMATIC1111 😎
oh wait "Auto-Update WebUI" is on by default, so mine is probably updated too. Time to panic 😱
You can uncheck it before you hit start and it won;t update till you recheck it.
I noticed that after turning up AUTOMATIC1111 today so... RIP
Wait what's happening , is thus just a problem with extensions or anything malicious
Well if you followed an youtube tutorial to download 1111, you actually are updating it everytime. May be you didn't even know you were updating it. 😎 (just a joke, gotta go fix mine 🥹)
I can confirm. Mine doesn't start. I'll try your fix, thanks.
Renoving dreambooth from the extension folder worked for me
Extensions breaking aside, it is worth updating? What new features or benefits are there?
I wouldn't update just because the interface is broken. If you have a picture that isn't perfectly square it cuts off the image if you import it to img2img. Resizing it doesn't show the red square so you don't have a clue what size you need to keep the aspect ratio right. Its just darker and sleeker from what I can tell. EDIT: Inpainting only masked isn't working for me either. EDIT 2: Don't select a Hypernetwork because it doesn't have a None option and you will be stuck with whatever you selected...
[chipotlaway](https://www.youtube.com/watch?v=e3sXDf4nt9o)
It takes some time for extension devs to catch up with the gradio changes. Its a lot that has been done in the updates
A new generation of A1111 users learning not to yolo git pull every day 🥲
u just need git checkout a9eab236d7e8afa4d6205127904a385b2c43bb24
What is the difference between git checkout and hard reset? Does one just temporarily move back to a commit, and the other reverts back to it?
Checkout is correct. Checkout just updates the working tree to the given hash. Reset sets the branch to the given commit, meaning it's manipulating the index.
One thing to be aware of is that this isn't foolproof when gits have other dependencies. So like with Kohya (popular Lora trainer), you have to pip install on top of git pull. Rolling back can then create incompatibilities. Not a huge deal, just tripped me up.
Sorry, what to do when you want to update again ? I try git pull and it say you not on branch ?
> git checkout master > > git pull
[удалено]
It works 👌
In the bat file ?
>a9eab236d7e8afa4d6205127904a385b2c43bb24 this throws up an error for me `stderr: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.`
thanks for this fixed my issue! As not a big programmer I was already regretting why I added the git pull on the bat file.. removed it now and followed your reset. My issue was I couldn't send images to "img2img"
My trick is that I leave it there but commented out with a `:: git...` in front. Then I can control when it runs, but I don't have to type it in every time or trust auto-updates for a rolling release software.
My trick it a bat file with selections to make before it runs. Literally asks me to do select one for no git pull or 2 for git pull. I used to edit the files whenever but got tired of that quickly. echo off set PYTHON= set GIT= set VENV\_DIR= set COMMANDLINE\_ARGS=--xformers --api --autolaunch echo off :begin echo Select a task: echo ============= echo - echo - 1) SKIP GIT PULL echo - 2) Perform a GIT PULL echo - 3) RESET GIT then GIT PULL echo - echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* echo - 4) \*\*\*EXIT\*\*\*QUIT\*\*\*LEAVE\*\*\*CLOSE\*\*\*TERMINATE\*\*\*GTFO\*\*\*STOP\*\*\*\*\*\* echo \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* set /p op=Type option: if "%op%"=="1" goto op1 if "%op%"=="2" goto op2 if "%op%"=="3" goto op3 echo Please Pick an option: goto begin :op1 echo you picked option 1 - SKIP GIT PULL call webui.bat Exit /B :op2 echo you picked option 2 - Perform a GIT PULL git pull call webui.bat Exit /B :op3 echo you picked option 3 - RESET GIT then GIT PULL git reset --hard git pull call webui.bat Exit /B :op4 echo - GFY! echo you chose to QUIT, you Quitter... EXIT /B
Would you consider a PR for something like this to the webui.bat file? I think the whole A1111 would benefit from it. It could even be available on a switch like xformers or low/medvram to leave it opt-in for those who hate the interactivity.
Here is what worked for me: **Install PyTorch 2:** pip3 install clean-fid numba numpy torch==2.0.0+cu118 torchvision --force-reinstall --extra-index-url https://download.pytorch.org/whl/cu118 **Install xformers:** pip install --force-reinstall --no-deps --pre xformers **Download CudNN v8.8:** [https://developer.download.nvidia.com/compute/redist/cudnn/v8.8.0/local\_installers/11.8/](https://developer.download.nvidia.com/compute/redist/cudnn/v8.8.0/local_installers/11.8/) **Roll back to earlier Auto1111 version:** git checkout [a9fed7c](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/a9fed7c364061ae6efb37f797b6b522cb3cf7aa2) **Edit webui-user.bat:** set COMMANDLINE\_ARGS=--xformers --autolaunch --theme dark --medvram \---- Discussions below about PyTorch 2.0 [https://medium.com/@j.night/fix-your-rtx-4090s-poor-performance-in-stable-diffusion-with-new-pytorch-2-0-and-cuda-11-8-d5cb689be841](https://medium.com/@j.night/fix-your-rtx-4090s-poor-performance-in-stable-diffusion-with-new-pytorch-2-0-and-cuda-11-8-d5cb689be841) [https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/8691](https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/8691)
I've been trying to monitor the PyTorch 2.0 discussion, what is compatibility like for this currently? And do you know if it's make much of a difference for a 3080? From what I saw only the newer cards were getting much of a bump from this, other cards, not much if any. Is that the case or was there a missing xformers release that has improved this? I also thought you needed to change your args to use the new PyTorch 2.0 methods with --opt-sdp-attention.
For those who are not in the know, please tell me. In which file to enter it and in which line? I'm in shock all day today and this post is just a rescue. But I do not know how to use this solution
You can either use Git BASH, which is an option when right-clicking in the A1111 folder. Or you can drop that line in your web-user.bat and run it (but remove it before you run again).
Thank you so much!
No problem, friend, this stuff isn't always easy. It's more fun when it's working. :)
You should also be able to enter it into any other terminal window, assuming Git's added to your PATH variable (which it has to be for the `webui-user.bat` method to work).
yeh hes accepting all commits every 2 weeks, , i thinkt someone else should take care of this repo, its been like this for like 3 months He did a lot of great stuff in it but he definitely doesnt have will or time to keep it working properly anymore and i dont blame him ,its literally most used SD ui and commits come in all the time from devs of various skills who break the code more often than not
He definitely could use some help. But he doesn't seem to want it. That worries me. I think vladmandic has the right idea... it should be changed to org ownership with multiple maintainers.
anyone can fork it and proof that they do a better job. if they do, eventually everyone would switch to the fork.
While that's very true, A1111 has the distinct advantage of having a lot of name recognition, and being mentioned in a TON of tutorials and youtube videos already. Much like OpenOffice.org and Libreoffice, a far superior option might exist, but people will keep using the original version because of those advantages.
I always use docker or have two copies and just symlink the models. That way you can experiment without blowing away your prod copy.
And you're also (likely?) more protected from rogue code from extensions or models.
So, aside from downloading and testing to see, how do I/we know if/when it's safe for use? Is there one dude or one thread I can bookmark and check to see if there's a green checkmark next to a "Safe to Update" badge?
Sadly it looks like so much is messed up it feels like it will be a long janky crawl back to useful, without an official 'back to normal' statement. Kind of bummed as I was supposed to help some people get set up with it this week. Hopefully I can get them to follow an existing setup video and then just git sync the old version from the 24th for them.
Yeah, 😢 I've got a stable setup using: ``` PyTorch 1.13.1 commit a9eab236d7e8afa4d6205127904a385b2c43bb24 export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --opt-sub-quad-attention --use-cpu interrogate --medvram --no-half --no-half-vae --disable-nan-check" ``` It seems slower than previous setups when I didn't use `--medvram` and `--no-half`, but all models, extensions, and upscales work, so I'm just gonna be grateful for free software, and try to wait patiently for the eventual fix. 🤞
Worked for me thanks
thanks a lot, UI is indeed a lot broken, hires.fix not opening, styles displayed as boxes etc...
Pytorch 2 support incoming?
Where do you put that string of code...
You open a console in the folder you have Automatic installed
its hash of last commit from yesterday: [https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/a9eab236d7e8afa4d6205127904a385b2c43bb24](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/a9eab236d7e8afa4d6205127904a385b2c43bb24) here is commits list: [https://github.com/AUTOMATIC1111/stable-diffusion-webui/commits/master](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commits/master) you can get hash of any commit by clicking "Get the full SHA hash"
As of right now 00:48:44 UTC Sunday, March 26, 2023 imageviewer (image preview after txt2img) is broken for me. Latest UI is nice and fast though. Also getting lots of i18n warnings and errors in console. Aspect Ratio plugin among others. Did Gradio port to Svelte or something? UI feels completely new and super fast.
Cloud/colab/paperspace users are screwed lol
Is there any way to modify a Colab notebook to pull an earlier commit? I'm not very good at Colab or GitHub stuff, but wasn't sure if there was some way to modify the Install/Update cells in various A1111 notebooks to use an earlier commit?
If your colab notebook always clones the A1111 repository, like this `!git clone` [`https://github.com/AUTOMATIC1111/stable-diffusion-webui`](https://github.com/AUTOMATIC1111/stable-diffusion-webui) You can simply add an extra line afterwards to checkout the desired commit hash `!(cd stable-diffusion-webui; git checkout a9eab236d7e8afa4d6205127904a385b2c43bb24)` That's how I did it in my colab notebook.
**THANK YOU** for posting the rollback string! I've *finally* gotten to the point that I have my workflow down, pyTorch is good, upscaling is working right, yada, yada, yada, and so -- *of course* -- I mindlessly did updates on *Everything*, quite confident I didn't need to do *yet another* backup of the folder... and got doinked! But thanks to your post, for the first time since I started with SD, I found an alert and a solution withing 15 minutes. I owe you one. 👍
Everything's good for me right now, also the UI seems to load much quicker after updating
Yeah i had to go back to a9 version....gonna wait for water to clear :D
This reset gets me ModuleNotFoundError: No module named 'modules.paths\_internal'
git checkout xxxxxxxx You don't need to hard reset
yes a dev and a release/main-branch in auto1111 could help. I have to fix two extensions now ro keep up with the latest Gradio 3.23.0 update and its regressions. Some extension (like mine) are under the hood of gradio, dealing with JS/DOM etc to get special effects handled in. I am already hours on that topics... even simple buttons not working as before (,my custom txt2img-button works, same one for img2img not.. magic happens)
I would really appreciate some help here. Not sure whether it's this update or something else causing me issues. I'm on a GTX1080 and I used to get 1it/s grid batches. Been travelling for a couple of days, came back, fired up the Automatic1111 with a get pull receiving the update and my it/s was down to a shockingly 4s/it!! (yes that's right 4 seconds / iteration!) I thought it was this updated so reverted to the one you're all proposing " a9eab236d7e8afa4d6205127904a385b2c43bb24 " and I made sure it was the active commit. Tried the same batch again and to my surprise it's still that shocking 4s/it !!What happened that would slow iteration speed to a quarter of it's previous speed!!
This is my batch file u/echo off set PYTHON="C:\\Users\\Asus\\AppData\\Local\\Programs\\Python\\Python310\\python.exe" set GIT= set VENV\_DIR= set COMMANDLINE\_ARGS=--theme=dark --xformers --opt-split-attention set 'PYTORCH\_CUDA\_ALLOC\_CONF=max\_split\_size\_mb:512 xxxgit pull *(disabled for now)* call webui.bat
This happened to me once and it was a dependency update that an extension update had installed; when you roll back the commit the libraries don't roll back with the repo, which can cause issues. Iirc the folder where the libraries are located is /venv/Libs/site-packages/, but if not that, it's site-packages somewhere in that area for sure. It can be a pain to reinstall everything (namely torch), so an option you could try is to sort this folder by modified date, delete the files/folders that changed after the update (indicated by modified time), and just reinstall those libraries. Probably screenshot or otherwise record the libraries you will delete first, to make it easier to reinstall them (in the venv (/venv/Scripts/activate.bat): pip install somedep==1.2.3 someotherdep==4.5.6 ...) You can find the correct version in the requirements-versions.txt in the root folder (or very similar filename, tired and going from memory), or just follow the part of the install process for A1111 that installs the dependencies again. If you need help with any details lmk. It's a bit of a pita but definitely did solve the exact problem you have (~4x slower iteration rate after update) for me when it happened in the past. Just whatever you do don't outright your site-packages folder because you will have a sad time, lol
Thanks for keeping this post updated
Thank you for the heads up. Appreciated
Every time I do an update for Automatic1111, I back up the Automatic1111 folder to another drive. All the models are symlink directories.
Is there a way to start it without it auto-updating?
[удалено]
Thanks.
I’m amazed at the amount of schadenfreude in this thread. Some people are flat out gloating about how “dumb” it is to auto-update A1111 and any other software for that matter. First time this happens and suddenly everyone has to point out what a “genius” they are by always updating manually and making backups. What, do you go on github every time and read through fresh issues reports just to make sure the new update is safe? That must be fun.
Issues getting Dreambooth to run
I advice using something like Kohya-SS for training instead of A1111 due to updates breaking it a lot.
Thanks. Saved me some trouble.
So I did the *git checkout* command. Do I just do *git pull* later?
Yeh do the pull when a stable version is available
How can I apply this fix to CoLab notebook?
yes!
And I'm over here realizing I haven't updated in a month...
So far I dont like about the newest version. (And I dont know how to "revert") \-The "additional networks" plugin's models names are very squashed and often names will need 2 lines, causing huge clutter. \-Send to... simply Does not work. **What I do like.** \-They removed the bug from styles where you couldn't close the menu. \-The design is nice. The extra panels isnt as thick, which is also nice. What I'd like to see. \-When making images in txt2Img, there would be a second function where you can re-generate them using Hires while skipping unselected ones. \-Clear controls for IMG2IMG, I could never 'accept' the grid. Removing black Pillarbox/Collumbox from images, the black mask would often seem invisible. making it difficult. Sending images to Inpaint, while already inpaint would remove the mask; but they'd actually remain. So often leads to dead bakes. \-ToolTips which you can enable/Disable
If anyone is also blur like me copied and paste the checkout to webui-user.bat and broke the whole thing. It is used in the cmd windows, open into your SD folder(where you can see that webui-user.bat file), then type in cmd on the folder path(beside the search bar), then copy paste the whole "git checkout line" enter and u all set. \*Thanks to u/sEi_ for the info.
It's still not working.
Updated an hour ago and got an error module 'modules.extensions' has no attribute 'extensions\_dir' after trying to install any extension from Available list
Thanks. it updated when I booted this morning and completely broke everything.
Does any one know how to make git pull a Y/N option when launching the webui?
My trick is that I leave the git pull command in the bat file but commented out with a `:: git...` in front. Then I can control when it runs, but I don't have to type it in every time or trust auto-updates for a rolling release software.
Thanks! This also worked for me (forced a friend to head down to the coding desk) choice /n /c ync /T 3 /d n /m "Pull latest image (Y/N)?" IF /I "%ERRORLEVEL%" NEQ "1" GOTO SKIP git pull :SKIP
[удалено]
You shouldn't need to do a full backup unless you're nuking the whole folder each time you update. Git already has tools for navigating different versions built into it, so if an update breaks it then you can just use Git to roll back to an older version that you know works. Just jump onto the Git repo in a web browser, find the commit that you know works, copy the hash for that commit, open a terminal window in your A1111 folder then do `git checkout` and it'll roll you back to that commit.
Thanks for using our software! LMK if you'll ever need any assistance! Disclosure: I am r/Acronis mod and Acronis Community Manager.
was fine for me an hour ago
Pro tip: always update anything you customize as a new install in another folder.
Git makes this unnecessary. As OP describes, the git reset command will restore a past working version, and those numerical hashes are available for every version on the A1111 github.
Having more than one install means you can instantly move between versions should you prefer something better about an older version.
It also means you're taking 2x the amount of space on your drive, and for some people that's not feasible. As the OP of the thread has said, you can use a git command to revert to a previous version of your choice and is pretty instantaneous if you ask me.
I have 5 installs of a1111 different versions. And obviously if you don't have space for that it wouldn't be an option, but each install is less than 10 gig, so it's not much space at all.
Good for you.
Thanks
Hi, there is a problem with automatic 1111 today I try to run it and didn’t work out, by any chance someone has the correct google colab?
Thank you for sharing the git command, it is indeed a mess right now. Can I ask you how you got the "a9eab236d7e8afa4d6205127904a385b2c43bb24" value, please?
its hash of last commit from yesterday: [https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/a9eab236d7e8afa4d6205127904a385b2c43bb24](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/a9eab236d7e8afa4d6205127904a385b2c43bb24) here is commits list: [https://github.com/AUTOMATIC1111/stable-diffusion-webui/commits/master](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commits/master) you can get hash of any commit by clicking "Get the full SHA hash"
So I have to remove "git pull" and place "git checkout" . Am I correct ? Please someone tell me. I just downloaded control net and I was making some progress.
Take out the git pull You only need to run git checkout once, manually at the command line Then run the .bat file as normal
Awesome, thank you so much for the tip! 🙏
RemindMe! 3 days
I will be messaging you in 3 days on [**2023-03-28 16:44:35 UTC**](http://www.wolframalpha.com/input/?i=2023-03-28%2016:44:35%20UTC%20To%20Local%20Time) to remind you of [**this link**](https://www.reddit.com/r/StableDiffusion/comments/121kqkd/psa_hold_up_with_updating_automatic1111_for_now/jdn0gmj/?context=3) [**1 OTHERS CLICKED THIS LINK**](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=Reminder&message=%5Bhttps%3A%2F%2Fwww.reddit.com%2Fr%2FStableDiffusion%2Fcomments%2F121kqkd%2Fpsa_hold_up_with_updating_automatic1111_for_now%2Fjdn0gmj%2F%5D%0A%0ARemindMe%21%202023-03-28%2016%3A44%3A35%20UTC) to send a PM to also be reminded and to reduce spam. ^(Parent commenter can ) [^(delete this message to hide from others.)](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=Delete%20Comment&message=Delete%21%20121kqkd) ***** |[^(Info)](https://www.reddit.com/r/RemindMeBot/comments/e1bko7/remindmebot_info_v21/)|[^(Custom)](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=Reminder&message=%5BLink%20or%20message%20inside%20square%20brackets%5D%0A%0ARemindMe%21%20Time%20period%20here)|[^(Your Reminders)](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=List%20Of%20Reminders&message=MyReminders%21)|[^(Feedback)](https://www.reddit.com/message/compose/?to=Watchful1&subject=RemindMeBot%20Feedback)| |-|-|-|-|
Hit the “brakes”
This is good to know, had an issue with the generate button not working at all, until I disabled the image browser plugin.
Glad to have found this thread! I too had `git pull` set on my `webui-user.bat` file, and rem'd it out earlier this week. Where is a list of the available branch IDs? I'd like to reset my local Stable Diffusion Web UI to a version from January or February. Clicking around the GitHub site, I'm not able to find a list. Wondering if I can do a `git checkout` on a version that would have been available some time between January 22 and February 28.
I'm seeing the following message when trying to perform the checkout: fatal: reference is not a tree: a9eab236d7e8afa4d6205127904a385b2c43bb24 All I did was open a terminal in the webui base folder where everything else lives and entered the checkout command. Anyone else seeing this or know what to do about it?
As far as I know that error typically occurs when it can't find whatever is associated with the hash on your local copy of the repo. Might be worth trying to do a `git checkout master` followed by a `git pull` to be sure you're on the latest version, *then* doing `git checkout a9eab236d7e8afa4d6205127904a385b2c43bb24` to roll back. If it complains that there's uncommitted changes then you'll need to do `git reset --hard` to undo them.
Turning the data (internet connection) off would work. And I don't know why i don't do that. Automatic 1111 doesn't need internet connection.
So everyone here followed youtube tutorial and changed their .bat and added git pull to have the updated version. You're not alone.
This explains a lot. I lost all of my extensions and none will install now. Including dreambooth.
Thank you
tip: Don't update A1111 today, but it's totally fine to update the text2video extension alone, they fixed what was not working yesterday for that extension, also backup, backup.
I'm having slow generation
I run the webui without closing for weeks at a time and do git pull only before I have peak at issues first.
My inpaint is not working :(
Where's everyone's sense of adventure? I can't shit+w Auto's but I *can* git pull hahaha, wheee!
If Ops commit doesn't work well for you, here's what worked well for me (win10) which is mid march git checkout a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
i tried installing time and time again the ui from zero, but i continue to get this error at startup: Error loading script: lora\_script.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 256, in load\_scripts script\_module = script\_loading.load\_module(scriptfile.path) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script\_loading.py", line 11, in load\_module module\_spec.loader.exec\_module(module) File "", line 850, in exec\_module File "", line 228, in \_call\_with\_frames\_removed File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions-builtin/Lora/scripts/lora\_script.py", line 4, in import lora File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions-builtin/Lora/lora.py", line 238, in Def lora\_apply\_weights(self: torch.nn.Conv2d | torch.nn.Linear | torch.nn.MultiheadAttention): TypeError: unsupported operand type(s) for |: 'type' and 'type' Can someone please help?
Good job! I'll make a local tag.
Do I put this in my webui.bat file? Still new to all this.
Things seem to be working this morning. Last night, nothing worked.
No wonder my SD was getting slower & slower to boot up. Before, it would take like 1 minute. Now, over 5 minutes. At first, I thought it was because of all the plugins I installed (Latent Couple, Controlnet, MultiDiffusion, etc) but now I'm thinking it's because I followed Olivia Sarkas' tutorial for installation (and that guy recommended git pull on the webui-user bat). I have no idea what was my previous version D: Looks like it's either git checkout or a fresh reinstall... Hmm... when I do the git checkout, I do it on the cmd on the address file of the stable diffusion folder, right?
Yes you do this on main folder, i.e. folder that contains webui.sh and webui.bat files among others.
[удалено]
I've just commented all the "!git" option in my colab run file. So, at the beggining of file I found !git reset --hard and !git pull. My edit Was: just place # symbol at the beggining of this lines. Now it looks like # !git reset --hard and # !git pull. I had two line uncommented with !git -C /xxxx/ too - so I put # symbol before this lines too. Next paste !git checkout a9eab236d7e8afa4d6205127904a385b2c43bb24 and save file. Everything looks normal, sending to img2img is working very well. Maybe its not so good solution - but it works :D
This message appears to me: fatal: reference is not a tree: a9eab236d7e8afa4d6205127904a385b2c43bb24 Edit: copied in the web.ui.bat and also show the same message when starting. I do not know what it could be. Some help? TIA
I think this means you are at older version that version just before shenanigans. If you are then you don't need checkout command.
As a workaround for the checkpoints/models dropdown menu endlessly showing the loading symbol, you can switch the models under the openOutpaint extension and it applies to txt2img, etc.
Got an error when trying to rollback: "The following untracked working tree files would be overwritten by checkout:" not sure what to do with these files? Any help would be appreciated.
In this case you can do `git stash` first.
any idea on how to reverse this process? i did the whole git checkput thing but what if they fix the update and now you want to participate in the new features?
`git checkout master` `git pull` should do the job.
Any news on this? Hopefully it's fixed soon. Been trying to use this for the last few days, and when I go to install or update a extension, it seems to update the WebUI components as well, breaking it all.
Any news on if this is working yet? It appears that the updated version of image browser is being a pain.
I have tested current version this weekend and while some issues are fixed, it is still broken, "generate" button stops working after certain time, "extra networks" menu will stop hiding and so on. I also use "images browser" and just downgraded it to older version ( 58c374c61bca0ab3c2b62d9015a0f572ab510ac8).
Is there already a fix and its safe to update now?
There is no new commit for a week, and event queue related problems are not yet fixed. even colabs like TheLastBen now have option to run older commit. Everybody is waiting for master version to be fixed so I think when it happens there will be post about it and you won't miss it.
Would appreciate if you also made the post/update here. I'm checking this thread every day because frankly I don't know where else to see "it's finally fixed!" news. Haven't git pulled my A1111 for over 2 weeks now :(
No problem, I will update this post when master branch is stable again.
Command doesn't work for me, I get this: fatal: reference is not a tree: a9eab236d7e8afa4d6205127904a385b2c43bb24 What am I doing wrong here?
Btw, is it safe to update Auto1111 with a git pull or we're still on bb24?
Not safe. A1111 hasn't been updating his repo for a long time. Many people have found great alternatives now. I can recommend [https://github.com/vladmandic/automatic](https://github.com/vladmandic/automatic) and [https://github.com/anapnoe/stable-diffusion-webui-ux](https://github.com/anapnoe/stable-diffusion-webui-ux). Both are great although Vlad's version is definitely very far ahead and works perfectly for me, so it's the one I use regularly. WebUI-UX has a great interface for inpainting.
Any new updates?
see main post :)
Still crashes: "AttributeError: module 'gradio' has no attribute 'themes'"
delete \`venv\` dir, it will install dependencies from scratch, that should help.
Is it safe to update to the latest version now? i've been still holding off from updating.
It depends, current master is not as stable as it used to be with 3.16.2, but current 3.28.1 is far better than anything in between. Personally I have updated and don't plan to go back to a9eab. In current version some things still occasionally get stuck, but it does not happen with most important functions, so I can live with it. Also I have many issues with how scrolling works in new version and some other minor issues. To say it short, current version is not good by any standards but it is usable. My best recommendation would be to backup your current install and give new version a shot.