UFold icon indicating copy to clipboard operation
UFold copied to clipboard

AttributeError when training data

Open laiyii opened this issue 2 years ago • 4 comments

Dear developer, I get an error when training data:

AttributeError: Can't get attribute 'RNA_SS_data' on <module '__mp_main__' from 'D:\\大四\\上学期\\机器学习及其在化学中的应用\\大作业\\workdir\\ufold_train.py'>

The file related to 'mp_main' is "C:\Users\fly\anaconda3\lib\multiprocessing\spawn.py", it seems like a multiprocessing error, could you please help me with this problem? Thank you!

laiyii avatar Dec 19 '22 15:12 laiyii

I'm running with cpu)

laiyii avatar Dec 19 '22 15:12 laiyii

Hi there,

You may refer to (https://github.com/uci-cbcl/UFold/blob/5f2be9c1ccb3fc01869dccb5bb8a180a2740c6f9/ufold/data_generator.py#L32) and (https://github.com/uci-cbcl/UFold/blob/5f2be9c1ccb3fc01869dccb5bb8a180a2740c6f9/ufold/data_generator.py#L47) to change this to single core, but be aware that it will result in lower running time.

sperfu avatar Dec 20 '22 01:12 sperfu

Thanks for your quick reply🌹 While I'm a beginner, still confused about how to change this to single core, could you please show me more details? Thank you.

laiyii avatar Dec 20 '22 04:12 laiyii

I find the AttributeError results from windows system, the Pool.map function is failed (https://medium.com/@grvsinghal/speed-up-your-python-code-using-multiprocessing-on-windows-and-jupyter-or-ipython-2714b49d6fac) it goes well when using linux.

laiyii avatar Dec 21 '22 07:12 laiyii