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

AssertionError when running notebook #1

Open
ghost opened this issue Feb 24, 2021 · 0 comments
Open

AssertionError when running notebook #1

ghost opened this issue Feb 24, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 24, 2021

I'm getting the following error when running the notebook. I ran it both with jpg as well as png files from different sources and in different aspect ratios

AssertionError                            Traceback (most recent call last)
<ipython-input-4-544c57e7cc8b> in <module>()
    102         display.display(plt.gcf())
    103         display.clear_output(wait=True)
--> 104         for k,(HR,_) in enumerate(model(ref_im,**kwargs)):
    105           if(show_intermediate_images):
    106             if(k==0 or (k+1)%10==0):

1 frames
/content/pulse/loss.py in __init__(self, ref_im, loss_str, eps)
      5     def __init__(self, ref_im, loss_str, eps):
      6         super(LossBuilder, self).__init__()
----> 7         assert ref_im.shape[2]==ref_im.shape[3]
      8         im_size = ref_im.shape[2]
      9         factor=1024//im_size
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

0 participants