Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: System refuses to use vae_approx additions to config.txt - crashes out on launch #3899

Open
4 of 5 tasks
cgwers opened this issue Feb 28, 2025 · 1 comment
Open
4 of 5 tasks
Labels
bug Something isn't working triage This needs an (initial) review

Comments

@cgwers
Copy link

cgwers commented Feb 28, 2025

Checklist

  • The issue has not been resolved by following the troubleshooting guide
  • The issue exists on a clean installation of Fooocus
  • The issue exists in the current version of Fooocus
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

I added the vae_approx path for my existing models to config.txt. The system crashes out on startup. I tried \ and /, neither worked. Invoke accepts models from other entries.

config.txt contains no tabs.

I use vivaldi.

Steps to reproduce the problem

Modifed config.txt with this entry:

"path_vae_approx":  [
    "F:/Fooocus_win64_2-6-0/Fooocus/models/vae_approx",
    "G:/models/vae_approx"
],

Click a run bat.

What should have happened?

It should have accept the vae_approx entry.

What browsers do you use to access Fooocus?

Other

Where are you running Fooocus?

None

What operating system are you using?

No response

Console logs

F:\Fooocus_win64_2-6-0>.\python_embeded\python.exe -s Fooocus\entry_with_update.py --preset realistic
Already up-to-date
Update succeeded.
[System ARGV] ['Fooocus\\entry_with_update.py', '--preset', 'realistic']
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Fooocus version: 2.6.5 (mashb1t)
Loaded preset: F:\Fooocus_win64_2-6-0\Fooocus\presets\realistic.json
[Cleanup] Attempting to delete content of temp dir C:\Users\test\AppData\Local\Temp\fooocus
[Cleanup] Cleanup successful
Traceback (most recent call last):
  File "F:\Fooocus_win64_2-6-0\Fooocus\entry_with_update.py", line 46, in <module>
    from launch import *
  File "F:\Fooocus_win64_2-6-0\Fooocus\launch.py", line 145, in <module>
    config.default_base_model_name, config.checkpoint_downloads = download_models(
  File "F:\Fooocus_win64_2-6-0\Fooocus\launch.py", line 107, in download_models
    load_file_from_url(url=url, model_dir=config.path_vae_approx, file_name=file_name)
  File "F:\Fooocus_win64_2-6-0\Fooocus\modules\model_loader.py", line 19, in load_file_from_url
    os.makedirs(model_dir, exist_ok=True)
  File "os.py", line 210, in makedirs
  File "ntpath.py", line 211, in split
TypeError: expected str, bytes or os.PathLike object, not list

F:\Fooocus_win64_2-6-0>pause
Press any key to continue . . .

Additional information

Brand new installation of 2.6.0. No system changes. I'm able to use my models with ComfyUI for as long as I'm able to keep that bloody crapfest running. They also work with SD.NEXT.

I tried installing the other Fooocus forks to test, but they failed on their initial post-install runs with identical errors unrelated to this issue,

@cgwers cgwers added bug Something isn't working triage This needs an (initial) review labels Feb 28, 2025
@cgwers
Copy link
Author

cgwers commented Feb 28, 2025

The system screwed with the slashes. I did double the regular one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This needs an (initial) review
Projects
None yet
Development

No branches or pull requests

1 participant