vladmandic / automatic

SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models
https://github.com/vladmandic/automatic
GNU Affero General Public License v3.0
5.48k stars 400 forks source link

[Issue]: System Info does not update correctly the information in Version section #1850

Closed TiagoSantos81 closed 1 year ago

TiagoSantos81 commented 1 year ago

Issue Description

System Info does not update correctly the information in Version section. See #1845 for more details and screenshots.

Version Platform Description

Git pull -r up to commit 479511a.

Version shown in Version section:

Version: app: automatic.git updated: 2023-07-09 hash: 8db37972 url: https://github.com/vladmandic/automatic.git/tree/master

image

Relevant log output

Using VENV: venv
21:01:08-524118 INFO     Starting SD.Next
21:01:08-533542 INFO     Python 3.10.9 on Windows
21:01:08-592248 INFO     Version: 8db37972 Sun Jul 9 00:50:49 2023 +0100
21:01:08-837765 ERROR    Failed to check version: HTTPSConnectionPool(host='api.github.com', port=443): Max retries
                         exceeded with url: /repos/vladmandic/automatic/branches/master (Caused by
                         NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001C64552AAD0>: Failed
                         to establish a new connection: [WinError 10013] An attempt was made to access a socket in a
                         way forbidden by its access permissions')) None
21:01:08-847632 DEBUG    Setting environment tuning
21:01:08-850485 DEBUG    Torch overrides: cuda=True rocm=False ipex=False diml=False
21:01:08-853674 DEBUG    Torch allowed: cuda=True rocm=False ipex=False diml=False
21:01:08-861676 INFO     nVidia CUDA toolkit detected
21:01:09-023161 WARNING  Modified files: ['modules/lora', 'modules/lycoris', '0.png', '1.png', '10.png', '11.png',
                         '12.png', '13.png', '14.png', '15.png', '16.png', '17.png', '18.png', '19.png', '2.png',
                         '20.png', '21.png', '22.png', '23.png', '24.png', '25.png', '26.png', '27.png', '28.png',
                         '29.png', '3.png', '30.png', '31.png', '4.png', '5.png', '6.png', '7.png', '8.png', '9.png',
                         '"Base Pics/"', 'leftover.png', 'results/', 'tools/']
21:01:09-105337 DEBUG    Repository update time: Sun Jul  9 00:50:49 2023
21:01:09-108773 DEBUG    Previous setup time: Thu Jul 27 01:34:16 2023
21:01:09-111273 INFO     Disabled extensions: []
21:01:09-113971 INFO     Enabled extensions-builtin: ['a1111-sd-webui-lycoris', 'clip-interrogator-ext', 'LDSR',
                         'Lora', 'multidiffusion-upscaler-for-automatic1111', 'ScuNET', 'sd-dynamic-thresholding',
                         'sd-extension-system-info', 'sd-webui-agent-scheduler', 'sd-webui-controlnet',
                         'stable-diffusion-webui-images-browser', 'stable-diffusion-webui-rembg', 'SwinIR']
21:01:09-125458 INFO     Enabled extensions: ['stable-diffusion-webui-inspiration',
                         'stable-diffusion-webui-artists-to-study', 'sd-webui-openpose-editor', 'sd-webui-roop',
                         'openpose-editor', 'sd-webui-segment-anything', 'Stable-Diffusion-Webui-Civitai-Helper',
                         'sd-webui-animatediff', 'SadTalker', 'openOutpaint-webUI-extension']
21:01:09-139571 DEBUG    Latest extensions time: Thu Jul 27 01:29:52 2023
21:01:09-142904 DEBUG    Timestamps: version:1688860249 setup:1690418056 extension:1690417792


### Acknowledgements

- [X] I have read the above and searched for existing issues
- [X] I confirm that this is classified correctly and its not an extension or diffusers-specific issue
vladmandic commented 1 year ago

git says you're on Version: 8db37972 Sun Jul 9 00:50:49 2023 +0100 i don't think system info is reporting incorrectly, its more likely you're not updated even if you think you are. and even if you are up to date as you say, your git is showing what it is - i'm not pulling it out of nowhere, so its really inconsistent repo.

TiagoSantos81 commented 1 year ago
(base) G:\automatic>git pull -r
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 26 (delta 8), reused 11 (delta 3), pack-reused 0
Unpacking objects: 100% (26/26), 78.37 KiB | 27.00 KiB/s, done.
From https://github.com/vladmandic/automatic
   83208591..479511a0  master     -> origin/master
Fetching submodule modules/lycoris
From https://github.com/KohakuBlueleaf/LyCORIS
   c8a662d..6dc0dbf  main       -> origin/main
   15b3a6b..3290f7b  dev        -> origin/dev
Successfully rebased and updated refs/heads/master.

(base) G:\automatic>webui-user.bat
Using VENV: venv
21:01:08-524118 INFO     Starting SD.Next
21:01:08-533542 INFO     Python 3.10.9 on Windows
21:01:08-592248 INFO     Version: 8db37972 Sun Jul 9 00:50:49 2023 +0100

By the way, I'm in the process of updating issue #1845 with new findings.

TiagoSantos81 commented 1 year ago

i'm not pulling it out of nowhere, so its really inconsistent repo.

Also from issue #1845, https://github.com/vladmandic/automatic/issues/1845#issuecomment-1654500449 proves you with a screenshot I am on the updated version, or was the 'Advanced' checkbox existing before the commit I highlighted?

vladmandic commented 1 year ago

yes, screenshot shows that you're on newer code. doesn't mean that your git status is correct - if system info shows bad version and sdnext also shows bad version, there is something with your local git copy, not system info.

TiagoSantos81 commented 1 year ago

yes, screenshot shows that you're on newer code. doesn't mean that your git status is correct - if system info shows bad version and sdnext also shows bad version, there is something with your local git copy, not system info.

Fair enough. But the update system is somehow flawed. Usually git fails to update if there is any change not commited.