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

Error in example 2 #2

Open
Lukeli0425 opened this issue Dec 28, 2022 · 0 comments
Open

Error in example 2 #2

Lukeli0425 opened this issue Dec 28, 2022 · 0 comments

Comments

@Lukeli0425
Copy link

Lukeli0425 commented Dec 28, 2022

Hi there! i was testing your method on image deconvolution and ran into the following errors:

---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
Cell In[9], line 4
      1 #loop
      2 # for obs, psf, gt in zip(gals_obs,psfs,gals):
      3 #deconvolve
----> 4 g1.deconvolve(obs=obs_im,ground_truth=gt_im,psf=psf_im)
      5 g0.deconvolve(obs=obs_im,ground_truth=gt_im,psf=psf_im)
      6 #update ellipticity error lists

File ~/Galaxy-Deconv/score/score.py:735, in score.deconvolve(self, **kwargs)
    730 """This method performs deconvolution.
    731 -----------------------------------------------------------------------
    732 PARAMETERS:
    733    For more details on the input parameters see 'set_param'."""
    734 self._bool_dec = True
--> 735 self._restore(**kwargs)

File ~/Galaxy-Deconv/score/score.py:707, in score._restore(self, **kwargs)
    705 #the remaining parameters are given defaults values
    706 self.set_defaults(**kwargs)
--> 707 self.init_input(**kwargs)
    708 if self.verbose:
    709     print("Running restoration...")
...
   1125 scale_nominator = ((scale_fun_upper_bound - scale_fun_lower_bound) /
   1126                    max_scale)
   1127 hor_scale = scale_nominator / (n_max - a / max_scale)

AssertionError: The given number of scales is too large for the given dimensions!

Could you help me fix it? Thanks!

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

1 participant