machine-learning icon indicating copy to clipboard operation
machine-learning copied to clipboard

my machine-learning tutorial

Results 10 machine-learning issues
Sort by recently updated
recently updated
newest added

Bumps [numpy](https://github.com/numpy/numpy) from 1.12.0 to 1.22.0. Release notes Sourced from numpy's releases. v1.22.0 NumPy 1.22.0 Release Notes NumPy 1.22.0 is a big release featuring the work of 153 contributors spread...

dependencies

Bumps [pillow](https://github.com/python-pillow/Pillow) from 4.0.0 to 9.0.1. Release notes Sourced from pillow's releases. 9.0.1 https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html Changes In show_file, use os.remove to remove temporary images. CVE-2022-24303 #6010 [@​radarhere, @​hugovk] Restrict builtins within...

dependencies

Bumps [opencv-python](https://github.com/skvark/opencv-python) from 3.2.0.6 to 4.2.0.32. Release notes Sourced from opencv-python's releases. 4.2.0.32 opencv-python: https://pypi.org/project/opencv-python/ opencv-contrib-python: https://pypi.org/project/opencv-contrib-python/ opencv-python-headless: https://pypi.org/project/opencv-python-headless/ opencv-contrib-python-headless: https://pypi.org/project/opencv-contrib-python-headless/ OpenCV version 4.2.0. Changes: macOS environment updated from xcode8.3...

dependencies

您好,如果我有的是灰度图,是否只需要修改input_shape里的通道值为1就行了吗,预训练的权重还能使用吗

加载的vgg模型来预测的时候都不准确,不知道是怎么回事 example:predict('zebra.jpg') result:n12144580 corn predict('pig.jpg') result:n02325366 wood rabbit, cottontail, cottontail rabbit

你好,目录下的ex.py文件可以跑过,但是后面预测的那部分源码在哪里,感觉看的不是很懂。能否放上完整的脚本供参考,非常感谢。 ## 现在我们开始来预测了 ## 首先写一个方法来加载并处理图片 ```python def load_image(imageurl): im = cv2.resize(cv2.imread(imageurl),(224,224)).astype(np.float32) im[:,:,0] -= 103.939 im[:,:,1] -= 116.779 im[:,:,2] -= 123.68 im = im.transpose((2,0,1)) im = np.expand_dims(im,axis=0) return im ``` ##...

我用的是windows7+keras+tensorflow,但是无法使用您的vgg16_weight.h5,请问您使用的是Th后端训练的vgg16吗?一下子就掉坑里,贼爽

``` def load_image(imageurl): im = cv2.resize(cv2.imread(imageurl),(224,224)).astype(np.float32) im[:,:,0] -= 103.939 im[:,:,1] -= 116.779 im[:,:,2] -= 123.68 im = im.transpose((2,0,1)) im = np.expand_dims(im,axis=0) return I'm ``` 请问这个为什么三个通道要减去这个值? 后面的转置是什么目的?不太懂,希望大神解答下谢谢!

Is this based on tensorflow? I didnot find the py file in cloning files.

Bumps [pillow](https://github.com/python-pillow/Pillow) from 4.0.0 to 9.3.0. Release notes Sourced from pillow's releases. 9.3.0 https://pillow.readthedocs.io/en/stable/releasenotes/9.3.0.html Changes Initialize libtiff buffer when saving #6699 [@​radarhere] Limit SAMPLESPERPIXEL to avoid runtime DOS #6700 [@​wiredfool]...

dependencies