Traceback (most recent call last):


 "sample_patches.py", line 49, in <module>

main()


 "sample_patches.py", line 37, in main

patches = sample_patches(np.array(img), args.patch_size)


 "sample_patches.py", line 12, in sample_patches

patches = image.extract_patches_2d(img, patch_size, max_patches)


 "/usr/local/lib/python3.5/dist-packages/sklearn/feature_extraction/image.py", line 378, in extract_patches_2d

n_patches = _compute_n_patches(i_h, i_w, p_h, p_w, max_patches)


 "/usr/local/lib/python3.5/dist-packages/sklearn/feature_extraction/image.py", line 236, in _compute_n_patches

raise ValueError("Invalid value for max_patches: %r" % max_patches)
ValueError: Invalid value for max_patches: 50

[DEBUG
] Error: Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/salt/modules/mine.py", line 151, in update

if m_data[func] and isinstance(m_data[func], dict):
TypeError: list indices must be integers or slices, not str
