Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rystylee opened this issue May 31, 2024 · 7 comments
Closed

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

rystylee opened this issue May 31, 2024 · 7 comments

Comments

@rystylee
Copy link

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
Copy link

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
Copy link
Collaborator

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

@zhanghongyong123456
Copy link

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
Copy link
Collaborator

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

from transformers.image_utils import to_numpy_array

@zhanghongyong123456
Copy link

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

from transformers.image_utils import to_numpy_array

It's OK ,

@zhanghongyong123456
Copy link

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

@k-l-lambda
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants