594422814 / UDT_pytorch

MIT License
191 stars 23 forks source link

bash: line 1: 29044 Segmentation fault #12

Open xxAna opened 4 years ago

xxAna commented 4 years ago

Thank you for your excellent work! When I run the code, I was encounter an error :

Connected to pydev debugger (build 183.4886.43) Namespace(batch_size=32, epochs=50, input_sz=125, lr=0.01, momentum=0.9, padding=2.0, print_freq=10, range=10, resume='', save='./work', start_epoch=0, weight_decay=5e-05, workers=8) GPU NUM: 3 bash: line 1: 29044 Segmentation fault (core dumped) env "JETBRAINS_REMOTE_RUN"="1" "LIBRARY_ROOTS"="C:/Users/15821/.PyCharm2018.3/system/remote_sources/-272358791/201545290;C:/Users/15821/.PyCharm2018.3/system/remote_sources/-272358791/452379848;C:/Users/15821/.PyCharm2018.3/system/remote_sources/-272358791/-235070914;C:/Users/15821/.PyCharm2018.3/system/remote_sources/-272358791/1405239563;C:/Users/15821/.PyCharm2018.3/system/remote_sources/-272358791/-1171821208;C:/Users/15821/.PyCharm2018.3/system/python_stubs/-272358791;C:/Program Files/JetBrains/PyCharm 2018.3.2/helpers/python-skeletons;C:/Program Files/JetBrains/PyCharm 2018.3.2/helpers/typeshed/stdlib/3;C:/Program Files/JetBrains/PyCharm 2018.3.2/helpers/typeshed/stdlib/2and3;C:/Program Files/JetBrains/PyCharm 2018.3.2/helpers/typeshed/third_party/3;C:/Program Files/JetBrains/PyCharm 2018.3.2/helpers/typeshed/third_party/2and3" "PYDEVD_USE_CYTHON"="NO" "PYDEVD_LOAD_VALUES_ASYNC"="True" "PYTHONPATH"="/home/xxx/UDT/UDT_pytorch:C:/Users/15821/AppData/Local/Programs/Python/Python36-32:/home/xxx/.pycharm_helpers/pycharm_matplotlib_backend:/home/xxx/.pycharm_helpers/third_party/thriftpy:/home/xxx/.pycharm_helpers/pydev:C:/Users/15821/.PyCharm2018.3/system/cythonExtensions:/home/xxx/UDT/UDT_pytorch/train" "PYTHONIOENCODING"="UTF-8" "PYTHONDONTWRITEBYTECODE"="1" "IPYTHONENABLE"="True" "PYCHARM_MATPLOTLIB_PORT"="29137" "PYCHARM_HOSTED"="1" "PYTHONUNBUFFERED"="1" "IDE_PROJECT_ROOTS"="/home/xxx/UDT/UDT_pytorch" '/usr/bin/python3' '-u' '/home/xxx/.pycharm_helpers/pydev/pydevd.py' '--multiproc' '--qt-support=auto' '--client' '0.0.0.0' '--port' '34961' '--file' '/home/xxx/UDT/UDT_pytorch/train/train_UDT.py'

Process finished with exit code 139

Does anyone face the same problem as me? Wish for some help sincerely!

pleaseanswer916 commented 3 years ago

I met the same question. This is an illegal memory access of the operating system, you can try to reduce the value of batch_size.