huangkuns / wireframe

217 stars 45 forks source link

TypeError: __init__() got an unexpected keyword argument 'max_value' #13

Open 9527feng opened 5 years ago

9527feng commented 5 years ago

hi,Excuse me, what's the problem? when I running "python main.py --create_dataset --exp 1 --json":

File "F:\机器学习\源代码\wireframe-master\wireframe-master\junc\datasets\utils.py", line 333, in load_data_and_save bar = pb.ProgressBar(widgets=[ '[ ', pb.Bar(), ' ][ ', pb.Timer(), ' ]'], max_value=pb.UnknownLength) TypeError: init() got an unexpected keyword argument 'max_value'

huangkuns commented 5 years ago

Hi, this line of code is not quite necessary actually, it just shows the progress, you can delete the "progressBar" related code. Possible reasons (1) you need install proper packages related to progressBar, (2) you need use python3 to run the code.

9527feng commented 5 years ago

Thank you very much for your answer. I have a new problem. Can you help me? Now I can visualize the wireframe, but another difficulty I encountered is that I cannot visualize the junctions.(As shown in the second line of figure 2 in the paper)

ronaldpan commented 4 years ago

change 'max_value' to 'maxval'