PlotNeuralNet icon indicating copy to clipboard operation
PlotNeuralNet copied to clipboard

example error

Open lucasjinreal opened this issue 4 years ago • 3 comments

File "unet.py", line 19
    *block_2ConvPool( name='b2', botton='pool_b1', top='pool_b2', s_filer=256, n_filer=128, offset="(1,0,0)", size=(32,32,3.5), opacity=0.5 ),

lucasjinreal avatar Mar 13 '20 06:03 lucasjinreal

File "unet.py", line 19
    *block_2ConvPool( name='b2', botton='pool_b1', top='pool_b2', s_filer=256, n_filer=128, offset="(1,0,0)", size=(32,32,3.5), opacity=0.5 ),

I have the same problem as you. Have you solved it?

Magic-123 avatar May 10 '20 05:05 Magic-123

Same problem, run it on MacOS with python 2.7.16. test-examples.py is OK, but unet.py have same problem seems * in line 19,20,21,29,31,33,36 is invalid

solution

use python3(in my system it's Python 3.7.7) function block_2ConvPool return a list the * signal is used to unpacking the list for example: [1,*[2,3],4] -> [1,2,3,4] but in python2 it not works, so you could check your python version

YangLeiSX avatar Sep 06 '20 05:09 YangLeiSX

All you need is python3

TangChiaHsin avatar Apr 12 '21 01:04 TangChiaHsin