ComfyUI-to-Python-Extension icon indicating copy to clipboard operation
ComfyUI-to-Python-Extension copied to clipboard

Windows needs double "\" in paths to models etc.

Open AuricMists opened this issue 1 year ago • 2 comments

Hi, Came across another issue with Windows 10 -

Paths to files that have a "\" character need to have it replaced with "\\" for example, the generated code vaeloader_7 = vaeloader.load_vae(vae_name="SDXL\sdxl_vae.safetensors") needs to be replaced with vaeloader_7 = vaeloader.load_vae(vae_name="SDXL\\sdxl_vae.safetensors")

Cheers.

AuricMists avatar Dec 20 '24 17:12 AuricMists

Hi, Came across another issue with Windows 10 -

Paths to files that have a "" character need to have it replaced with "" for example, the generated code vaeloader_7 = vaeloader.load_vae(vae_name="SDXL\sdxl_vae.safetensors") needs to be replaced with vaeloader_7 = vaeloader.load_vae(vae_name="SDXL\sdxl_vae.safetensors")

Cheers.

What? Both of those are exactly the same.

niceguy4 avatar Feb 06 '25 05:02 niceguy4

Haha, got caught out by the very thing I'm trying to describe. However, there is a clue in the title :-) Poetic justice for not checking it before posting. I'll change it.

AuricMists avatar Feb 06 '25 11:02 AuricMists