ximinng / SVGDreamer

[CVPR 2024] Official implementation for "SVGDreamer: Text Guided SVG Generation with Diffusion Model" https://arxiv.org/abs/2312.16476
https://ximinng.github.io/SVGDreamer-project/
MIT License
219 stars 17 forks source link

Update __init__.py #5

Closed CodeGeek04 closed 7 months ago

CodeGeek04 commented 7 months ago

I was getting this error-

$ python svgdreamer.py x=iconography skip_sive=False "prompt='an image of Batman. full body action pose, complete detailed body. white background. empty background, high quality, 4K, ultra realistic'" token_ind=4 x.vpsd.t_schedule='randint' result_path='./logs/batman' multirun=True
Traceback (most recent call last):
  File "/home/shiv/SVGDreamer/svgdreamer.py", line 17, in <module>
    from svgdreamer.pipelines.SVGDreamer_pipeline import SVGDreamerPipeline
  File "/home/shiv/SVGDreamer/svgdreamer/pipelines/SVGDreamer_pipeline.py", line 29, in <module>
    from svgdreamer.svgtools import merge_svg_files, is_valid_svg
  File "/home/shiv/SVGDreamer/svgdreamer/svgtools/__init__.py", line 6, in <module>
    from .tff import FONT_LIST
ModuleNotFoundError: No module named 'svgdreamer.svgtools.tff'

I solved it by comment 2 lines in init.py in svgtools

ximinng commented 7 months ago

Dear CodeGeek04,

Thank you for your inspection~

Best Regards ximinng