metercai / SimpleSDXL

Enhanced version of Fooocus for SDXL, more suitable for Chinese and Cloud
GNU General Public License v3.0
629 stars 28 forks source link

[Bug]: 根据系统资源自动适配的功能识别不太准确 #71

Closed kalvinses closed 1 month ago

kalvinses commented 1 month ago

Checklist

What happened?

我重新安装的版本,识别系统资源的时候显卡显存识别正确,但是没有切换成高配模型,进去之后还是会自动下载11G大小的flux模型,但是我实际的显卡是4070,显存是12G的,怎么手动修改默认调用的flux模型

Steps to reproduce the problem

1、开启fooocus 2、点击fluxdev选项卡

What should have happened?

识别是正确的,但是没有切换成高配模型

What browsers do you use to access Fooocus?

Microsoft Edge

Where are you running Fooocus?

Locally

What operating system are you using?

No response

Console logs

SimpleSDXL: Already up-to-date, fe1ef95
[System ARGV] ['SimpleSDXL\\entry_with_update.py', '--models-root', '../../SimpleModels', '--output-path', '../../outputs']
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Fooocus version: 2.5.5
Comfy version: 233c67a
SimpleSDXL version: v20240820.fe1ef95
Checking ...
[SimpleAI] GPU: NVIDIA GeForce RTX 4070, RAM: 32477MB, SWAP: 53120MB, VRAM: 12282MB, DiskFree: 353947MB, CUDA: 12.5
[SimpleAI] local_did/本地身份ID: hRT3rrBFJ553UzSHoGk2pF3LTwj
Load config data from D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\config.txt.
Loaded preset: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\presets\default.json
The path_models_root: D:\simpleAI\SimpleModels
The path_output: D:\simpleAI\outputs
Total VRAM 12282 MB, total RAM 32477 MB
xformers version: 0.0.27
Set vram state to: NORMAL_VRAM
Always offload VRAM
Device: cuda:0 NVIDIA GeForce RTX 4070 : native
VAE dtype: torch.bfloat16
[SimpleAI] The path of models_info file: D:\simpleAI\SimpleModels\models_info.json
[Cleanup] Attempting to delete content of temp dir C:\Users\kav\AppData\Local\Temp\fooocus
[Cleanup] Cleanup successful
Using xformers cross attention
Refiner unloaded.
model_type EPS
UNet ADM Dimension 2816
[Wildcards] Refresh and Load 27/27 wildcards: animal, bodytypes, buildings, chairs, color, containers, coverings, flora, flower, focus, foods, hairstyles, jobs, materials, minilocations, moods, nationality, objects, objectstohold, outfits, patterns, poses, rpg, shotsizes, space, timeperiods, vehicles.
[OneButtonPrompt] The customized module:OneButtonPrompt is initializing ...
Running on local URL:  http://192.168.31.117:8186

To create a public link, set `share=True` in `launch()`.
[Comfyd] Fix and patch for torch in windows
Using xformers attention in VAE
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
Using xformers attention in VAE
IMPORTANT: You are using gradio version 3.41.2, however version 4.29.0 is available, please upgrade.
--------
extra {'cond_stage_model.clip_l.text_projection', 'cond_stage_model.clip_l.logit_scale'}
left over keys: dict_keys(['cond_stage_model.clip_l.transformer.text_model.embeddings.position_ids'])
Base model loaded: D:\simpleAI\SimpleModels\checkpoints\juggernaut-X-RunDiffusion-NSFW.safetensors
VAE loaded: None
Request to load LoRAs [('sd_xl_offset_example-lora_1.0.safetensors', 0.1)] for model [D:\simpleAI\SimpleModels\checkpoints\juggernaut-X-RunDiffusion-NSFW.safetensors].
Loaded LoRA [D:\simpleAI\SimpleModels\loras\sd_xl_offset_example-lora_1.0.safetensors] for UNet [D:\simpleAI\SimpleModels\checkpoints\juggernaut-X-RunDiffusion-NSFW.safetensors] with 788 keys at weight 0.1.
[Gallery] Refresh_output_catalog: loaded 12 images_catalogs.
Fooocus V2 Expansion: Vocab with 642 words.
Fooocus Expansion engine loaded for cuda:0, use_fp16 = True.
Requested to load SDXLClipModel
Requested to load GPT2LMHeadModel
Loading 2 new models
[Comfyd] Device: cuda:0 NVIDIA GeForce RTX 4070 : cudaMallocAsync
[Fooocus Model Management] Moving model(s) has taken 0.34 seconds
Started worker with PID 15792
App started successful. Use the app with http://192.168.31.117:8186/ or 192.168.31.117:8186
[Fooocus] GPU memory: max_reserved=2.080GB, max_allocated=1.973GB, reserved=2.080GB, free=8.754GB, free_torch=0.107GB, free_total=8.861GB, gpu_total=11.994GB, torch_total=2.080GB
[Comfyd] [Prompt Server] web root: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\web
   0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI-Easy-Use
Comfy-Easy-Use v1.2.1: Loaded
[Comfyd] Device: cuda:0 NVIDIA GeForce RTX 4070 : cudaMallocAsync
[Comfyd] A new version of Albumentations is available: 1.4.14 (you have 1.4.7). Upgrade using: pip install --upgrade albumentations
Please 'pip install apex'
[Comfyd] Import times for custom nodes:
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\websocket_image_save.py
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\AIGODLIKE-COMFYUI-TRANSLATION
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI-FluxExt-MZ
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI_essentials
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI_IPAdapter_plus
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI-layerdiffuse
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI_UltimateSDUpscale
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI-Advanced-ControlNet
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI-IC-Light
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI_ExtraModels
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI-Kolors-MZ
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI_bitsandbytes_NF4
[Comfyd]    0.0 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI-KwaiKolorsWrapper
[Comfyd]    0.1 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\PuLID_ComfyUI
[Comfyd]    0.1 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI-Easy-Use
[Comfyd]    0.2 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI-KJNodes
[Comfyd]    0.2 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI-BrushNet
[Comfyd]    0.9 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI-SUPIR
[Comfyd]    1.3 seconds: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\comfy\custom_nodes\ComfyUI_InstantID
[Comfyd]
[Comfyd] Starting Comfyd server!

[Topbar] Reset_context: preset=default-->Flux+, theme=dark, lang=cn
Loaded preset: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\presets\Flux+.json
[Comfyd] Comfyd freeing!
[Topbar] Reset_context: preset=Flux+-->Fluxdev, theme=dark, lang=cn
Loaded preset: D:\simpleAI\SimpleSDXL2_win_0820\SimpleSDXL\presets\Fluxdev.json
[Comfyd] Comfyd freeing!
Downloading: "https://hf-mirror.com/lllyasviel/flux1-dev-bnb-nf4/resolve/main/flux1-dev-bnb-nf4-v2.safetensors" to D:\simpleAI\SimpleModels\checkpoints\flux1-dev-bnb-nf4-v2.safetensors

  1%|█                                                                             | 161M/11.2G [00:16<15:36, 12.7MB/s]

Additional information

No response

metercai commented 1 month ago

0820正式版是16G VRAM才适配Flux dev-fp16模型。如果你会改预置包文件,可以自行修改,指定模型: presets/Fluxdev.json "default_model": "auto", 将auto改成你下载好的模型文件。