Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ load_img
Function
load_img
cnn_class2/siamese.py:30–33 ·
view source on GitHub ↗
(filepath)
Source
from the content-addressed store, hash-verified
28
29
30
def
load_img(filepath):
31
# load image and downsample
32
img = image.img_to_array(image.load_img(filepath, target_size=[60, 80])).astype(
'uint8'
)
33
return
img
34
35
36
Callers
1
siamese.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected