a9ec1a8df7bbfd99d1e166fe5d72bafcc23c915b,periodic_table.py,,,#,9
Before Change
write(img, fmt="img", caption="225px", width=225)
write(img, fmt="img", caption="175px", width=175)
write(img, fmt="img", caption="125px", width=125)
channels = [np.array(img), np.array(img), np.array(img)]
channels[0][:,:,1:] = 0
channels[1][:,:,0::2] = 0
channels[2][:,:,:-1] = 0
write.img(channels, caption=["Red", "Green", "Blue"], width=125)
After Change
img = np.array(Image.open(io.BytesIO(img_bytes)))
grayscale = np.average(img, axis=2).astype(np.uint8)
grayscale2 = grayscale.reshape(grayscale.shape + (1,))
channels = img.transpose((2, 0, 1))
channels2 = channels.reshape(channels.shape + (1,))
channels_caption = ["Red", "Green", "Blue"]
write(img, fmt="img", caption="375px", width=375) // (w, h, 3)
write([img], fmt="img", caption="225px", width=225) // (n, w, h, 3)
write(grayscale, fmt="img", caption="175px", width=175) // (w, h)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: streamlit/streamlit
Commit Name: a9ec1a8df7bbfd99d1e166fe5d72bafcc23c915b
Time: 2018-02-03
Author: adrien.g.treuille@gmail.com
File Name: periodic_table.py
Class Name:
Method Name:
Project Name: chainer/chainercv
Commit Name: 827e12f3b9506e0f78cc79445441cd9d1f25c055
Time: 2018-04-24
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/links/model/yolo/yolov3.py
Class Name: YOLOv3
Method Name: __call__
Project Name: shenweichen/DeepCTR
Commit Name: d15a9563c531f0cd7ea58ddc0198dd5786f90402
Time: 2018-11-26
Author: last.fantasy@qq.com
File Name: deepctr/sequence.py
Class Name: SequencePoolingLayer
Method Name: call