c66b54878ac477f75e0e505d02831673ad3060c8,lib/streamlit/elements/image_proto.py,,_np_array_to_bytes,#Any#Any#,51
Before Change
def _np_array_to_bytes(array, format="JPEG"):
tmp = io.BytesIO()
img = Image.fromarray(array.astype(np.uint8))
img.save(tmp, format=format)
return tmp.getvalue()
def _4d_to_list_3d(array):
After Change
tmp = io.BytesIO()
img = Image.fromarray(array.astype(np.uint8))
if _image_has_alpha_channel(img):
img.save(tmp, format="PNG")
else:
img.save(tmp, format=format)
return tmp.getvalue()
def _4d_to_list_3d(array):
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: streamlit/streamlit
Commit Name: c66b54878ac477f75e0e505d02831673ad3060c8
Time: 2019-09-16
Author: arraydude@gmail.com
File Name: lib/streamlit/elements/image_proto.py
Class Name:
Method Name: _np_array_to_bytes
Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 157d4b75dce17ae7417f37cf76b844b789c71de8
Time: 2017-01-30
Author: akshayubhat@gmail.com
File Name: dvaapp/tasks.py
Class Name:
Method Name: extract_frames
Project Name: deeppomf/DeepCreamPy
Commit Name: 67586cb2c665e76365626200b93e9f826457a63d
Time: 2019-01-16
Author: karldamanphillips@gmail.com
File Name: decensor.py
Class Name: Decensor
Method Name: decensor_image
Project Name: streamlit/streamlit
Commit Name: c66b54878ac477f75e0e505d02831673ad3060c8
Time: 2019-09-16
Author: arraydude@gmail.com
File Name: lib/streamlit/elements/image_proto.py
Class Name:
Method Name: _PIL_to_bytes
Project Name: deepmipt/DeepPavlov
Commit Name: 387bb02bb54d6bec3b3618e62a97aa8618acca8c
Time: 2019-04-30
Author: theaswert@yandex.ru
File Name: deeppavlov/models/preprocessors/siamese_preprocessor.py
Class Name: SiamesePreprocessor
Method Name: save