To transform the layer to a tensor or numpy or any other standard python information I decide to store it as PNG and after some computation I will load it, but the load functions seams not towork:
It gets a gimp error that says that I try to add a layer to an incorrect image (it seems because img is different from image). I attached the full example code.
How do I load a png as a layer correctly?
12-30-2021, 05:54 PM (This post was last modified: 12-30-2021, 05:55 PM by z-uo.)
(12-30-2021, 04:56 PM)z-uo Wrote: To transform the layer to a tensor or numpy or any other standard python information I decide to store it as PNG and after some computation I will load it, but the load functions seams not towork:
It gets a gimp error that says that I try to add a layer to an incorrect image (it seems because img is different from image). I attached the full example code.
How do I load a png as a layer correctly?
I write my first Deep Learning plugin for Gimp! It use the Real-ERSGAN [Xintao 2021], the GIMP plugin can be founded here.
For now It have no settings into GUI, no waiting spinner and no recommendation about the usage on CPU that can be very slowly, But it work! Now I must study and improve my abilities! Maybe I will try to create also automation test...
Thanks for all!