Dancing2Music Application in Jetson Xavier_NX

Hi Team,

I am trying “Dancing2Music” Application in Jetson Xavier-NX SOM with L4t 32.6 (Jetpack version-4.6)

By, Refering the following Link:- GitHub - NVlabs/Dancing2Music

According to that, I have installed the Python 3.6 and Pip3 also .

If try to run the application with train Decomposition Command → $ python train_decomp.py --name Decomp

In that, I am Facing Improt-Error Issue for “torch” package as mentioned below,

ERROR:-

chaithra@chaithra-desktop:~/Dancing2Music$ python train_decomp.py --name Decomp
Traceback (most recent call last):
File “train_decomp.py”, line 12, in
import torch
ImportError: No module named torch

For this I have tried following link to Add all the dependencies needed for that application,

In this, I have tried,

JetPack 4.6 (L4T R32.6.1)

l4t-pytorch:r32.6.1-pth1.9-py3
PyTorch v1.9.0
torchvision v0.10.0
torchaudio v0.9.0

But, still Error remains same, how I can Resolve this Issue?

Hi,

Could you test it with python3 to see if it works?

$ python3 train_decomp.py --name Decomp

Thanks.

1 Like

Yes, Its a train Composition Command , I have tried

For, that only I got a same error that I have mentioned

Hi,

PyTorch should be preinstalled in the container you shared in Nov 16.
Do you find it within the container?

Thanks.

1 Like

yea, I have followed the below link to Install pyTorch:-

And its installed fin.

I am Facing Another Package Dependencey Error Related to Dancing2Music Application is :-

“Librose” package Error, For this I have tried with below links to install it:-

and I have Checked with importing package in python3 in that, I am getting Run-time Error:-

chaithra@chaithra-desktop:~/Dancing2Music$ python3
Python 3.6.9 (default, Jun 29 2022, 11:45:57)
[GCC 8.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import librosa
/home/chaithra/.local/lib/python3.6/site-packages/numba/core/errors.py:154: UserWarning: Insufficiently recent colorama version found. Numba requires colorama >= 0.3.9
warnings.warn(msg)
Traceback (most recent call last):
File “”, line 1, in
File “/home/chaithra/.local/lib/python3.6/site-packages/librosa/init.py”, line 209, in
from . import core
File “/home/chaithra/.local/lib/python3.6/site-packages/librosa/core/init.py”, line 5, in
from .convert import * # pylint: disable=wildcard-import
File “/home/chaithra/.local/lib/python3.6/site-packages/librosa/core/convert.py”, line 7, in
from . import notation
File “/home/chaithra/.local/lib/python3.6/site-packages/librosa/core/notation.py”, line 8, in
from …util.exceptions import ParameterError
File “/home/chaithra/.local/lib/python3.6/site-packages/librosa/util/init.py”, line 77, in
from .utils import * # pylint: disable=wildcard-import
File “/home/chaithra/.local/lib/python3.6/site-packages/librosa/util/utils.py”, line 9, in
import numba
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/init.py”, line 211, in
import numba.typed
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/typed/init.py”, line 1, in
from .typeddict import Dict
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/typed/typeddict.py”, line 22, in
@njit
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/core/decorators.py”, line 260, in njit
return jit(*args, **kws)
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/core/decorators.py”, line 183, in jit
return wrapper(pyfunc)
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/core/decorators.py”, line 212, in wrapper
**dispatcher_args)
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/core/dispatcher.py”, line 777, in init
self.targetctx = self.targetdescr.target_context
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/core/registry.py”, line 47, in target_context
return self._toplevel_target_context
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/core/utils.py”, line 277, in get
res = instance.dict[self.name] = self.func(instance)
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/core/registry.py”, line 31, in _toplevel_target_context
return cpu.CPUContext(self.typing_context)
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/core/base.py”, line 260, in init
self.init()
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/core/compiler_lock.py”, line 35, in _acquire_compile_lock
return func(*args, **kwargs)
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/core/cpu.py”, line 47, in init
self._internal_codegen = codegen.JITCPUCodegen(“numba.exec”)
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/core/codegen.py”, line 1100, in init
self._init(self._llvm_module)
File “/home/chaithra/.local/lib/python3.6/site-packages/numba/core/codegen.py”, line 1105, in _init
target = ll.Target.from_triple(ll.get_process_triple())
File “/home/chaithra/.local/lib/python3.6/site-packages/llvmlite/binding/targets.py”, line 197, in from_triple
raise RuntimeError(str(outerr))
RuntimeError: Unable to find target for this triple (no targets are registered)

@AastaLLL @kayccc

Can you please, give a suggestion to resolve the above Errors

Hi,

Please check the below link :

Thanks.

1 Like

Thankyou, I am able to install librosa and numba packages.

After all the dependency package installation, have tried to run the Decomposition command from the link:-

but, In that, I am getting Error like,

chaithra@chaithra-desktop:~/Dancing2Music$ python3 train_decomp.py --name Decomp
2022-11-22 18:19:21.235734: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.10.2
WARNING:tensorflow:Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them.
Traceback (most recent call last):
File “train_decomp.py”, line 41, in
os.mkdir(args.log_dir)
FileNotFoundError: [Errno 2] No such file or directory: ‘./logs/Decomp’

Is that souces has some issue ?

or

If there is a proper documentation to install the application?

@AastaLLL @yingliu @DaneLLL @WayneWWW @VickNV @ShaneCCC @JimWang

please, let me know to resolve the Above Issue that, I have mentioned?

Hi,

No such file or directory: ‘./logs/Decomp’

The error complains about a missing folder.
Could you create one or check why it doesn’t present?

Thanks

1 Like

yes, I have crated folder, and I have issued the decomposition command, Error changed has another “File_Not_Found_Error”

ERROR:-

chaithra@chaithra-desktop:~/Dancing2Music$ python3 train_decomp.py --name Decomp
2022-11-28 12:03:13.200869: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.10.2
WARNING:tensorflow:Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them.
/home/chaithra/.local/lib/python3.6/site-packages/OpenSSL/_util.py:6: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
from cryptography.hazmat.bindings.openssl.binding import Binding
Traceback (most recent call last):
File “train_decomp.py”, line 44, in
os.mkdir(args.snapshot_dir)
FileNotFoundError: [Errno 2] No such file or directory: ‘./snapshot/Decomp’

and I have Created "snapshot/Decomp folders also, agian error changed as :-

chaithra@chaithra-desktop:~/Dancing2Music$ python3 train_decomp.py --name Decomp
2022-11-28 12:03:46.435730: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.10.2
WARNING:tensorflow:Deprecation warnings have been disabled. Set TF_ENABLE_DEPRECATION_WARNINGS=1 to re-enable them.
/home/chaithra/.local/lib/python3.6/site-packages/OpenSSL/_util.py:6: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
from cryptography.hazmat.bindings.openssl.binding import Binding
Traceback (most recent call last):
File “train_decomp.py”, line 46, in
data_loader = get_loader(batch_size=args.batch_size, shuffle=True, num_workers=args.num_workers, dataset=args.dataset, data_dir=args.data_dir, tolerance=args.tolerance)
File “/home/chaithra/Dancing2Music/data.py”, line 190, in get_loader
a2d = PoseDataset(data_dir, tolerance)
File “/home/chaithra/Dancing2Music/data.py”, line 25, in init
with open(z_fname, ‘r’) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘./data/unitList/zumba_unit.txt’

Is that, Dancing2Music application source should have all this files and folder to exceute the Decomposition and Composition Commands?

Hi,

It’s recommended to check with the author directly.
You should be able to find them on GitHub.

Could you raise an issue there?

Thanks.

1 Like

yes, I have Raised Issue in Github also.

Issue Link:-