MarekKowalski/DeepAlignmentNetwork

cannot run ImageDemo.py

ahpu2014 opened this issue · 2 comments

Hi,
when I run ImageDemo.py ,some mistakes always happen.
eg:ValueError: mismatch: parameter has shape (256, 2) but value to set has shape (256, 3136)
Thanks for your reply!

Can you give more context, for example the full text of the exception with trace and line number?

Thanks,

Marek

HI,
How do I run imageDemo.py without encountering error.
The error message is;
Traceback (most recent call last):
File "C:\Users\xpert\Desktop\Data Analysis\Python Programming\Coding Files\C8Ex8 - ImageDemo.py", line 42, in
imageDemo() # Create GUI
^^^^^^^^^^^
File "C:\Users\xpert\Desktop\Data Analysis\Python Programming\Coding Files\C8Ex8 - ImageDemo.py", line 10, in init
caImage = PhotoImage(file="image/ca.gif")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Program Files\Python311\Lib\tkinter_init_.py", line 4130, in init
Image.init(self, 'photo', name, cnf, master, **kw)

File "C:\Program Files\Python311\Lib\tkinter_init_.py", line 4075, in init
self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't recognize data in image file "image/ca.gif"