novitalabs / AnimateAnyone

Unofficial Implementation of Animate Anyone by Novita AI
https://novita.ai
Apache License 2.0
747 stars 59 forks source link

ModuleNotFoundError: No module named 'src.dataset' #3

Closed rystylee closed 4 months ago

rystylee commented 4 months ago

In pipeline_pose2vid_long.py, trying to load a module called src.dataset.utils but the source code doesn't exist. Did you forget to upload it?

The following is the full text of the executed command and the error output.

python -m scripts.pose2vid --config ./configs/prompts/animation.yaml -W 512 -H 784 -L 64
/home/ryosuke/.pyenv/versions/animate-anyone/lib/python3.10/site-packages/diffusers/models/dual_transformer_2d.py:20: FutureWarning: `DualTransformer2DModel` is deprecated and will be removed in version 0.29. Importing `DualTransformer2DModel` from `diffusers.models.dual_transformer_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.transformers.dual_transformer_2d import DualTransformer2DModel`, instead.
  deprecate("DualTransformer2DModel", "0.29", deprecation_message)
Traceback (most recent call last):
  File "/home/ryosuke/.pyenv/versions/3.10.11/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/ryosuke/.pyenv/versions/3.10.11/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/media/NAS/users/ryosuke/projects/dance/AnimateAnyone/scripts/pose2vid.py", line 23, in <module>
    from src.pipelines.pipeline_pose2vid_long import Pose2VideoPipeline
  File "/media/NAS/users/ryosuke/projects/dance/AnimateAnyone/src/pipelines/pipeline_pose2vid_long.py", line 28, in <module>
    from ..dataset.utils import SquarePad
ModuleNotFoundError: No module named 'src.dataset'
zhanghongyong123456 commented 4 months ago

In pipeline_pose2vid_long.py, trying to load a module called src.dataset.utils but the source code doesn't exist. Did you forget to upload it?

The following is the full text of the executed command and the error output.

python -m scripts.pose2vid --config ./configs/prompts/animation.yaml -W 512 -H 784 -L 64
/home/ryosuke/.pyenv/versions/animate-anyone/lib/python3.10/site-packages/diffusers/models/dual_transformer_2d.py:20: FutureWarning: `DualTransformer2DModel` is deprecated and will be removed in version 0.29. Importing `DualTransformer2DModel` from `diffusers.models.dual_transformer_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.transformers.dual_transformer_2d import DualTransformer2DModel`, instead.
  deprecate("DualTransformer2DModel", "0.29", deprecation_message)
Traceback (most recent call last):
  File "/home/ryosuke/.pyenv/versions/3.10.11/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/ryosuke/.pyenv/versions/3.10.11/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/media/NAS/users/ryosuke/projects/dance/AnimateAnyone/scripts/pose2vid.py", line 23, in <module>
    from src.pipelines.pipeline_pose2vid_long import Pose2VideoPipeline
  File "/media/NAS/users/ryosuke/projects/dance/AnimateAnyone/src/pipelines/pipeline_pose2vid_long.py", line 28, in <module>
    from ..dataset.utils import SquarePad
ModuleNotFoundError: No module named 'src.dataset'

I not find ModuleNotFoundError: No module named 'configs.prompts.test_cases' and No module named 'src.dataset'
i copy Moore-AnimateAnyone project files but have new error,No module named 'src.dataset.utils'

k-l-lambda commented 4 months ago

Thanks. It's fixed: commit: fixed SquarePad missing

zhanghongyong123456 commented 4 months ago

Thanks. It's fixed: commit: fixed SquarePad missing

about AnimateAnyone\src\pipelines\utils.py to_numpy_array and F not define (line 46) ,I fix
image image but have new error: image so I think to_numpy_array Function, not just a simple PIL2Numpy array,Expect to provide this function

k-l-lambda commented 4 months ago

@zhanghongyong123456 that's fixed too. Please pull to latest.

from transformers.image_utils import to_numpy_array

zhanghongyong123456 commented 4 months ago

@zhanghongyong123456 that's fixed too. Please pull to latest.

from transformers.image_utils import to_numpy_array

It's OK ,

zhanghongyong123456 commented 4 months ago

我想请教大佬一下关于openpose 姿态一个问题: 我DWPose:当我禁用人脸检测得到简易姿态,那我如何得到简易的手指姿态呢 image

k-l-lambda commented 4 months ago

@zhanghongyong123456 Sorry, you can't. See here.