You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Synonyms on loading stopwords [/home/guxj/anaconda3/envs/NLP/lib/python3.8/site-packages/synonyms/data/stopwords.txt] ...
Synonyms on loading vectors [/home/guxj/anaconda3/envs/NLP/lib/python3.8/site-packages/synonyms/data/words.vector.gz] ...
Traceback (most recent call last):
File "", line 1, in
File "/home/guxj/anaconda3/envs/NLP/lib/python3.8/multiprocessing/spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "/home/guxj/anaconda3/envs/NLP/lib/python3.8/multiprocessing/spawn.py", line 125, in _main
prepare(preparation_data)
File "/home/guxj/anaconda3/envs/NLP/lib/python3.8/multiprocessing/spawn.py", line 236, in prepare
_fixup_main_from_path(data['init_main_from_path'])
File "/home/guxj/anaconda3/envs/NLP/lib/python3.8/multiprocessing/spawn.py", line 287, in _fixup_main_from_path
main_content = runpy.run_path(main_path,
File "/home/guxj/anaconda3/envs/NLP/lib/python3.8/runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "/home/guxj/anaconda3/envs/NLP/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/home/guxj/anaconda3/envs/NLP/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/guxj/code/T5/test2.0.py", line 4, in
import synonyms
File "/home/guxj/anaconda3/envs/NLP/lib/python3.8/site-packages/synonyms/synonyms.py", line 50, in
from .word2vec import KeyedVectors ImportError: attempted relative import with no known parent package
Traceback (most recent call last):
File "/home/guxj/code/T5/test2.0.py", line 349, in
main()
File "/home/guxj/code/T5/test2.0.py", line 346, in main
mp.spawn(train,nprocs=config.gpus,args=(config,))
File "/home/guxj/anaconda3/envs/NLP/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 240, in spawn
return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
File "/home/guxj/anaconda3/envs/NLP/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 198, in start_processes
while not context.join():
File "/home/guxj/anaconda3/envs/NLP/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 149, in join
raise ProcessExitedException(
torch.multiprocessing.spawn.ProcessExitedException: process 0 terminated with exit code 1
为啥会这样?我在命令行上导入就可以,但运行多卡训练的脚本就会出错。
The text was updated successfully, but these errors were encountered:
为啥会这样?我在命令行上导入就可以,但运行多卡训练的脚本就会出错。
The text was updated successfully, but these errors were encountered: