GreenWaves-Technologies / gap_sdk

SDK for Greenwaves Technologies' GAP8 IoT Application Processor
https://greenwaves-technologies.com/en/gap8-the-internet-of-things-iot-application-processor/
Apache License 2.0
138 stars 75 forks source link

gray-scale image channel #375

Closed noahzn closed 1 year ago

noahzn commented 1 year ago

Hi, my .jpeg images are gray-scale. I set the image_mode to 1, and tried to aquant, but got the error:

input_1 received input of shape (224, 320) but expecting [1, 224, 320]

[update] I copied the channel to save a three-channel image, and now it works.