BeenKim/MMD-critic

error while running run_digits.py

Opened this issue · 0 comments

I am getting this error:
Running Kernel type : local
0 68
1 57
2 40
3 36
4 36
5 33
6 37
7 36
8 30
9 37
number of images being printed 410
counter 1
Traceback (most recent call last):
File "C:\Documents\ExplainableAI\ExamplesAreNotEnough\MMD-critic-master\run_digits.py", line 223, in
main(data_prefix, output_prefix, gamma, m, alltestm, kernel_type, do_output_pics)

File "C:\Documents\ExplainableAI\ExamplesAreNotEnough\MMD-critic-master\run_digits.py", line 187, in main
os.path.join(data_prefix, 'usps.t'))

File "C:\Documents\ExplainableAI\ExamplesAreNotEnough\MMD-critic-master\run_digits.py", line 116, in run
plotfigs2(digitsdat.X[selected[sortedindx], :], selectedy[sortedindx], outfig)

File "C:\Documents\ExplainableAI\ExamplesAreNotEnough\MMD-critic-master\run_digits.py", line 54, in plotfigs2
gs = gridspec.GridSpec(int(perpic_m/perrow)+offset/perrow, perrow, wspace=0.0, hspace=0.0)

File "C:\Anaconda3\envs\Jan20\lib\site-packages\matplotlib\gridspec.py", line 422, in init
height_ratios=height_ratios)

File "C:\Anaconda3\envs\Jan20\lib\site-packages\matplotlib\gridspec.py", line 49, in init
f"Number of rows must be a positive integer, not {nrows}")

ValueError: Number of rows must be a positive integer, not 5.0

I am using python 3.7.9.

Thanks a lot in advance.