tuyunbin / Video-Description-with-Spatial-Temporal-Attention

[ACM MM 2017 & IEEE TMM 2020] This is the Theano code for the paper "Video Description with Spatial Temporal Attention"
https://github.com/tuyunbin/Video-Description-with-Spatial-Temporal-Attention
56 stars 16 forks source link

run model_attention.py #13

Closed niu1970 closed 4 years ago

niu1970 commented 4 years ago

D:\Anaconda2\envs\Theano\python.exe D:/PythonCode/Video-Description-with-Spatial-Temporal-Attention-master/train_model.py Traceback (most recent call last): File "", line 1, in File "D:\Anaconda2\envs\Theano\lib\multiprocessing\forking.py", line 380, in main prepare(preparation_data) File "D:\Anaconda2\envs\Theano\lib\multiprocessing\forking.py", line 510, in prepare '__parents_main', file, path_name, etc File "D:\PythonCode\Video-Description-with-Spatial-Temporal-Attention-master\train_model.py", line 8, in import model_attention File "D:\PythonCode\Video-Description-with-Spatial-Temporal-Attention-master\model_attention.py", line 21, in import metrics File "D:\PythonCode\Video-Description-with-Spatial-Temporal-Attention-master\metrics.py", line 74, in manager = Manager() File "D:\Anaconda2\envs\Theano\lib\multiprocessing\init.py", line 99, in Manager m.start() File "D:\Anaconda2\envs\Theano\lib\multiprocessing\managers.py", line 524, in start self._process.start() File "D:\Anaconda2\envs\Theano\lib\multiprocessing\process.py", line 130, in start self._popen = Popen(self) File "D:\Anaconda2\envs\Theano\lib\multiprocessing\forking.py", line 258, in init__ cmd = get_command_line() + [rhandle] File "D:\Anaconda2\envs\Theano\lib\multiprocessing\forking.py", line 358, in get_command_line is not going to be frozen to produce a Windows executable.''') RuntimeError: Attempt to start a new process before the current process has finished its bootstrapping phase.

        This probably means that you are on Windows and you have
        forgotten to use the proper idiom in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce a Windows executable.

Traceback (most recent call last): File "D:/PythonCode/Video-Description-with-Spatial-Temporal-Attention-master/train_model.py", line 8, in import model_attention File "D:\PythonCode\Video-Description-with-Spatial-Temporal-Attention-master\model_attention.py", line 21, in import metrics File "D:\PythonCode\Video-Description-with-Spatial-Temporal-Attention-master\metrics.py", line 74, in manager = Manager() File "D:\Anaconda2\envs\Theano\lib\multiprocessing__init__.py", line 99, in Manager m.start() File "D:\Anaconda2\envs\Theano\lib\multiprocessing\managers.py", line 528, in start self._address = reader.recv() EOFError

Process finished with exit code 1 image

niu1970 commented 4 years ago

image

image

image

tuyunbin commented 4 years ago

This project is implemented on linux system, and you should use linux as well.

niu1970 commented 4 years ago

Good!I'll try, thank you!Could you please tell me the general environment configuration?

tuyunbin commented 4 years ago

You can use Ubuntu 16+, python=2.7, and a GPU like Titan X.

niu1970 commented 4 years ago

Thank you!