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

train command gives error related to 'torch_imputer' #20

Open
Shailashree-KS opened this issue Sep 12, 2023 · 3 comments
Open

train command gives error related to 'torch_imputer' #20

Shailashree-KS opened this issue Sep 12, 2023 · 3 comments

Comments

@Shailashree-KS
Copy link

I got this error while running train command.
2023-09-12 15:47:46.250592: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-09-12 15:47:47.042422: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Traceback (most recent call last):
File "/media/administrator/0adda20a-df3e-4c0c-a4fc-ef1c1c039914/EXPERIMENTS/GLAT-main/train.py", line 14, in
cli_main()
File "/media/administrator/0adda20a-df3e-4c0c-a4fc-ef1c1c039914/EXPERIMENTS/GLAT-main/fairseq_cli/train.py", line 440, in cli_main
parser = options.get_training_parser()
File "/media/administrator/0adda20a-df3e-4c0c-a4fc-ef1c1c039914/EXPERIMENTS/GLAT-main/fairseq/options.py", line 36, in get_training_parser
parser = get_parser("Trainer", default_task)
File "/media/administrator/0adda20a-df3e-4c0c-a4fc-ef1c1c039914/EXPERIMENTS/GLAT-main/fairseq/options.py", line 216, in get_parser
utils.import_user_module(usr_args)
File "/media/administrator/0adda20a-df3e-4c0c-a4fc-ef1c1c039914/EXPERIMENTS/GLAT-main/fairseq/utils.py", line 459, in import_user_module
importlib.import_module(module_name)
File "/home/administrator/anaconda3/envs/itv2/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/media/administrator/0adda20a-df3e-4c0c-a4fc-ef1c1c039914/EXPERIMENTS/GLAT-main/glat_plugins/init.py", line 2, in
from .models import *
File "/media/administrator/0adda20a-df3e-4c0c-a4fc-ef1c1c039914/EXPERIMENTS/GLAT-main/glat_plugins/models/init.py", line 2, in
from .glat_ctc import *
File "/media/administrator/0adda20a-df3e-4c0c-a4fc-ef1c1c039914/EXPERIMENTS/GLAT-main/glat_plugins/models/glat_ctc.py", line 19, in
from torch_imputer.imputer import best_alignment
ModuleNotFoundError: No module named 'torch_imputer'

Please let me know how to resolve this

@hhh07
Copy link

hhh07 commented Dec 13, 2023

have you solve this problem?

@Shailashree-KS
Copy link
Author

Shailashree-KS commented Dec 14, 2023 via email

@hhh07
Copy link

hhh07 commented Dec 19, 2023

no... Still unable to solve the error. Please provide the solution. My PhD is dependent on this variations of NAT and at present nothing is working for me.. I am really tensed and worried. Please help me out

On Wed, Dec 13, 2023 at 7:00 PM hhh07 @.> wrote: have you solve this problem? — Reply to this email directly, view it on GitHub <#20 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5BVJARXWISKQSPUG3CXSBDYJGUZBAVCNFSM6AAAAAA4UUBXO2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJTHEZDGMBWGI . You are receiving this because you authored the thread.Message ID: @.>

I had the same problem, and I solved it by " git clone git@github.com:rosinality/imputer-pytorch.git ", and import from this package

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