facebookresearch / AnimatedDrawings

Code to accompany "A Method for Animating Children's Drawings of the Human Figure"
MIT License
10.31k stars 885 forks source link

Error on image_to_animation.py #250

Closed javier-pkg-mda closed 7 months ago

javier-pkg-mda commented 7 months ago

$ python image_to_animation.py drawings/javi1.png javi

Traceback (most recent call last): File "image_to_animation.py", line 41, in <module> image_to_animation(img_fn, char_anno_dir, motion_cfg_fn, retarget_cfg_fn) File "image_to_animation.py", line 22, in image_to_animation annotations_to_animation(char_anno_dir, motion_cfg_fn, retarget_cfg_fn) File "/home/javi/Projects/AnimatedDrawings/examples/annotations_to_animation.py", line 40, in annotations_to_animation animated_drawings.render.start(output_mvc_cfn_fn) File "/home/javi/.virtualenvs/animated_drawingg/lib/python3.8/site-packages/animated_drawings-0.0.0-py3.8.egg/animated_drawings/render.py", line 13, in start File "/home/javi/.virtualenvs/animated_drawingg/lib/python3.8/site-packages/animated_drawings-0.0.0-py3.8.egg/animated_drawings/config.py", line 19, in __init__ File "/home/javi/.virtualenvs/animated_drawingg/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1213, in resource_filename return get_provider(package_or_requirement).get_resource_filename( File "/home/javi/.virtualenvs/animated_drawingg/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1855, in get_resource_filename return self._extract_resource(manager, zip_path) File "/home/javi/.virtualenvs/animated_drawingg/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1874, in _extract_resource timestamp, size = self._get_date_and_size(self.zipinfo[zip_path]) KeyError: 'animated_drawings/mvc_base_cfg.yaml'

Python: 3.8.10 Ubuntu 20.04.6 LTS

Had to pin a version in Dockerfile torchserve otherwise build wasn't working ( RUN pip install torch==2.0.0 )

Even though there is an error it manages to create most of files at javi/ : bounding_box.yaml char_cfg.yaml image.png joint_overlay.png mask.png mvc_cfg.yaml texture.png