Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ imread
Function
imread
unsupervised_class3/util.py:20–22 ·
view source on GitHub ↗
(fn)
Source
from the content-addressed store, hash-verified
18
except
:
19
from
PIL
import
Image
20
def
imread(fn):
21
im = Image.open(fn)
22
return
np.array(im)
23
24
def
imsave(fn, arr):
25
im = Image.fromarray(arr)
Callers
3
crop_and_resave
Function · 0.85
files2images_theano
Function · 0.85
files2images
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected