Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parameter param_dict of create_patches doesn't work #19

Open
QiuBingCheng opened this issue Mar 27, 2022 · 2 comments
Open

parameter param_dict of create_patches doesn't work #19

QiuBingCheng opened this issue Mar 27, 2022 · 2 comments

Comments

@QiuBingCheng
Copy link

QiuBingCheng commented Mar 27, 2022

if I use the customized parameter like this
cd.create_patches(param_dict={'n_segments': [5,10,15]})
it will use the default parameter after the second discovery image
because you use the "pop" function in the _return_superpixels
param_dict.pop('n_segments', [15, 50, 80])

@yingji425
Copy link

Yes. I also find this problem, so I set a param_dict and copy the value as param_dict_c, and put the copy value to self._return_superpixels(img, method, param_dict_c), so the value will still be the param_dict after the second loop.
Maybe this can help you

@QiuBingCheng
Copy link
Author

I just replace the pop function with get function
anyway thank you for your information :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants