ximinng / PyTorch-SVGRender

SVG Differentiable Rendering: Generating vector graphics using neural networks. Support: text-to-SVG, Image-to-SVG, SVG Editing.
https://ximinng.github.io/PyTorch-SVGRender-project/
Mozilla Public License 2.0
125 stars 7 forks source link

svgdreamer error #12

Closed omarirfa closed 9 months ago

omarirfa commented 9 months ago

Hi Ximing and team!

After installing pytorch svg-render on ubuntu 22.04 using the install.sh script provided, I get this error while running the command in conda:

Command:

python svg_render.py x=svgdreamer "prompt='A colorful German shepherd in vector art. tending on artstation.'" save_step=30 x.guidance.n_particle=6 x.guidance.vsd_n_particle=4 x.guidance.phi_n_particle=2 result_path='./svgdreamer/GermanShepherd'

Error: image

An error above this line says hugging face cannot find the model in the disk cache.

Hugging face error: image

I am wondering if we are supposed to install stable diffusion from here and then run it? given I think in the init.py file the local_files_only parameter is set to True. So it will only look for files locally instead of getting them from online.

Best Regards, Omar

ximinng commented 9 months ago

hello omarirfa,

Your understanding is correct. Download the model and run the script via diffuser.download=True

python svg_render.py x=svgdreamer "prompt='A colorful German shepherd in vector art. tending on artstation.'" save_step=30 x.guidance.n_particle=6 x.guidance.vsd_n_particle=4 x.guidance.phi_n_particle=2 result_path='./svgdreamer/GermanShepherd' diffuser.download=True

Best Regards, ximing

omarirfa commented 9 months ago

Hi Ximing,

Thanks for your reply. I will test it out!

Best Regards, Omar