HarisIqbal88 / PlotNeuralNet

Latex code for making neural networks diagrams
MIT License
21.59k stars 2.83k forks source link

example error #73

Open lucasjinreal opened 4 years ago

lucasjinreal commented 4 years ago
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 ),
Magic-123 commented 4 years ago
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?

YangLeiSX commented 3 years ago

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

TangChiaHsin commented 3 years ago

All you need is python3