mirror of https://github.com/skygpu/skynet.git
Woops wrong img deseralization
parent
97f7d51782
commit
6453240f3a
|
@ -169,7 +169,7 @@ async def run_skynet_telegram(
|
||||||
if meta['upscaler'] == 'x4':
|
if meta['upscaler'] == 'x4':
|
||||||
size = (size[0] * 4, size[1] * 4)
|
size = (size[0] * 4, size[1] * 4)
|
||||||
|
|
||||||
img = Image.frombytes('RGB', size, img_raw)
|
img = Image.open(io.BytesIO(img_raw))
|
||||||
|
|
||||||
await bot.send_photo(
|
await bot.send_photo(
|
||||||
message.chat.id,
|
message.chat.id,
|
||||||
|
@ -203,7 +203,7 @@ async def run_skynet_telegram(
|
||||||
if meta['upscaler'] == 'x4':
|
if meta['upscaler'] == 'x4':
|
||||||
size = (size[0] * 4, size[1] * 4)
|
size = (size[0] * 4, size[1] * 4)
|
||||||
|
|
||||||
img = Image.frombytes('RGB', size, img_raw)
|
img = Image.open(io.BytesIO(img_raw))
|
||||||
|
|
||||||
await bot.send_photo(
|
await bot.send_photo(
|
||||||
message.chat.id,
|
message.chat.id,
|
||||||
|
|
Loading…
Reference in New Issue