pydn / ComfyUI-to-Python-Extension

A powerful tool that translates ComfyUI workflows into executable Python code.
MIT License
1.08k stars 113 forks source link

is there a way to set vram state like HIGH_VRAM and NORMAL_VRAM like in comfyui? #44

Open MaxTran96 opened 6 months ago

MaxTran96 commented 6 months ago

is there a way to set vram state like HIGH_VRAM and NORMAL_VRAM like in comfyui?

pydn commented 6 months ago

I haven't tested, but the default args you pass in comfyui should carry over here as well. Have you tried running the generated script with those arguments?

MaxTran96 commented 6 months ago

so like python3 workflow_api.py --comfyui_arg arg?

pydn commented 6 months ago

Yep. I haven't tested, but I think that should work.

rdcoder33 commented 3 months ago

no, it doesn't work. It's not taking any arguments

I have tried

python workflow_api.py --fp16-vae

and

python3 workflow_api.py --comfyui_arg --fp16-vae

But vae always comes fp32