上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 28 下一页
摘要: 主要调用numpy的tolist()方法,可参考下面的例子: import numpy as nparr=np.array([0,1,2,3,4,5,6,7,8,9])lst=arr.tolist()type(lst)#print(lst)#[0, 1, 2,... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(32) 评论(0) 推荐(0)
摘要: sudo vim /etc/modprobe.d/blacklist-nouveau.conf#add the content blow blacklist nouveauoptions nouveau modeset=0sudo update-initra... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(85) 评论(0) 推荐(0)
摘要: 解决方案 sudo apt-get install python3-setuptools 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(0) 评论(0) 推荐(0)
摘要: # bytes object b = b"example"# str object s = "example" # str to bytes sb = bytes(s, encoding = "utf8") # bytes to str bs = ... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(95) 评论(0) 推荐(0)
摘要: 解决方法:降低numpy版本 #python3pip3 install -U numpy==1.12.0#python2pip install -U numpy==1.12.0 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(252) 评论(0) 推荐(0)
摘要: 换成python-magic其他库 PIL和pygame的抗锯齿能力都很弱 Python Imaging Library - Text rendering - Stack Overflow http://stackoverflow.com/question... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(36) 评论(0) 推荐(0)
摘要: Pillow是PIL(暂不支持python3)下面的一个分支(https://pypi.python.org/pypi/Pillow/4.0.0),使用PIL直接用import Image,使用Pillow需要写from PIL import Image 参考... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(25) 评论(0) 推荐(0)
摘要: https://github.com/aishack/sifthttp://aishack.in/tutorials/implementing-sift-opencv/https://marcosnietoblog.wordpress.com/2012/07/... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(28) 评论(0) 推荐(0)
摘要: 1-下载代码 git clone https://github.com/torch/distro.git ~/torch --recursivecd ~/torchbash install-deps./install.sh 2-切换编译器 sudo unlin... 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(164) 评论(0) 推荐(0)
摘要: protoc config.proto --cpp_out=. 阅读全文
posted @ 2022-11-13 22:36 dlhl 阅读(84) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 28 下一页