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

apex needed #761

Open
QingZhong1996 opened this issue Dec 20, 2024 · 1 comment
Open

apex needed #761

QingZhong1996 opened this issue Dec 20, 2024 · 1 comment

Comments

@QingZhong1996
Copy link

I have already used the following command for inference
"python scripts/inference.py configs/opensora-v1-2/inference/sample.py
--num-frames 4s --resolution 720p
--layernorm-kernel False --flash-attn False
--prompt "a beautiful waterfall"",
but I am still encountering an error requiring the installation of apex.

"Traceback (most recent call last):
File "/./projects/Open-Sora/scripts/inference.py", line 304, in
main()
File "//projects/Open-Sora/scripts/inference.py", line 289, in main
save_path = save_sample(
File "//myconda/envs/opensora/lib/python3.9/site-packages/opensora/datasets/utils.py", line 178, in save_sample
write_video(save_path, x, fps=fps, video_codec="h264")
File "//myconda/envs/opensora/lib/python3.9/site-packages/torchvision/io/video.py", line 132, in write_video
frame.pict_type = "NONE"
File "av/video/frame.pyx", line 193, in av.video.frame.VideoFrame.pict_type.set
TypeError: an integer is required
/myconda/envs/opensora/lib/python3.9/site-packages/colossalai/pipeline/schedule/_utils.py:19: UserWarning: torch.utils._pytree.register_pytree
node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
_register_pytree_node(OrderedDict, _odict_flatten, _odict_unflatten)
/myconda/envs/opensora/lib/python3.9/site-packages/torch/utils/_pytree.py:254: UserWarning: <class 'collections.OrderedDict'> is already registered as pytree node. Overwriting the previous registration.
warnings.warn(
/myconda/envs/opensora/lib/python3.9/site-packages/colossalai/shardformer/layer/normalization.py:45: UserWarning: Please install apex from source (https://github.com/NVIDIA/apex) to use the fused layernorm kernel
warnings.warn("Please install apex from source (https://github.com/NVIDIA/apex) to use the fused layernorm kernel")"

@rfww
Copy link

rfww commented Dec 26, 2024

Hello, how to solve the issue of "TypeError: an integer is required"?

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

2 participants