Closed guopeng-jiang closed 2 weeks ago
Currenly having the same issue. Maybe you solved it?
I am tried to edit the code for it to work with CPU. What I have done so far:
input_shape = ((4, 0, 0), (6, 0, 0))
to ((0, 0, 4), (0, 0, 6))
and before this line add transposition to (0, 2, 3, 1) to p10 and p20image_shape[-1][0]
to [-1][-1]After that I am stuck getting error (128, 112, 0) cannot be fitted into (128, 112, 112) It is a shame that no one is looking after this project
I just had a look, what you did is correct. You just need to transpose back to channels first before calling recompose_images(...)
, i.e. prediction = prediction.transpose(0, 3, 1, 2)
in DSen2Net.py.
I may be able to commit this, need to check if it affects runs on GPU.
I run the following line
%run demoDSen2.py
but got the following error as below. Please help.