Open YihangLou opened 6 years ago
@ArtechStark It looks like you are using Python 3. The divide function in Python 3 is different in Python 2, which causes float result in nn.conv2D input. Change ResidualBlock output_layer calculation in basic_layers.py will solve this problem.
@skyguidance Thank you very much! The problem is solved now.
@tengshaofeng https://arxiv.org/pdf/1812.01187.pdf
谢谢你们的帮助 我自己改进后也达到97%
请问您如何改进的,能不能说一下细节,非常感谢。
excuse me,your code bring me a big help about my research,but,when i run the train.py,it appears the following errors,do you konw how to fix it? thank you! RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes 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 an executable.
ForkingPickler(file, protocol).dump(obj)
BrokenPipeError: [Errno 32] Broken pipe
Install the torch compiled with cuda,if gpu is available
发自我的iPhone
------------------ Original ------------------ From: November666 <notifications@github.com> Date: Wed,Oct 23,2019 6:41 PM To: tengshaofeng/ResidualAttentionNetwork-pytorch <ResidualAttentionNetwork-pytorch@noreply.github.com> Cc: bojohn <307149416@qq.com>, Mention <mention@noreply.github.com> Subject: Re: [tengshaofeng/ResidualAttentionNetwork-pytorch] It seems that the this code reproduced results can not achieve the results in the original paper ? (#1)
excuse me,your code bring me a big help about my research,but,when i run the train.py,it appears the following errors,do you konw how to fix it? thank you! Traceback (most recent call last): File "D:/wcj/code/python/ClassicNetwork-master/demo15.py", line 104, in model=ft_net().cuda() File "C:\Users\cg\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 311, in cuda return self._apply(lambda t: t.cuda(device)) File "C:\Users\cg\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 208, in _apply module._apply(fn) File "C:\Users\cg\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 208, in _apply module._apply(fn) File "C:\Users\cg\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 230, in _apply param_applied = fn(param) File "C:\Users\cg\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 311, in return self.apply(lambda t: t.cuda(device)) File "C:\Users\cg\Anaconda3\lib\site-packages\torch\cuda_init.py", line 178, in _lazy_init check_driver() File "C:\Users\cg\Anaconda3\lib\site-packages\torch\cuda_init.py", line 92, in _check_driver raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
I run the code by python train.py. Then I got the following errors. Do you know how to fix it?