Colorful Image Colorization 的环境配置
2016-07-05 00:45
281 查看
原文链接:https://github.com/richzhang/colorization
步骤基本是按照Installation里的说明
ipython notebook简介
说明:要根据自己机器的情况在Makefile.config里设置
依赖项
安装ATLAS
编译。由于我只用CPU的集成显卡所以注意官方说明里的For CPU-only Caffe, uncomment CPU_ONLY := 1 in Makefile.config. 然后按下列命令编译
测试。终端里命令如下。如果没有报错即为安装成功
follow项目
步骤基本是按照Installation里的说明
1.安装依赖库
1.1Python相关库
Python libraries (numpy, pyplot, skimage, scipy)。相关命令:sudo apt-get install python sudo apt-get install python-numpy sudo apt-get install python-matplotlib sudo apt-get install python-scipy
1.2python的ipython notebook
Ubuntu ipython notebook的安装ipython notebook简介
2.安装caffe
安装步骤主要参考Caffe在Ubuntu 14.04 64bit 下的安装和caffe官方安装文档说明:要根据自己机器的情况在Makefile.config里设置
依赖项
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
安装ATLAS
sudo apt-get install libatlas-base-dev
编译。由于我只用CPU的集成显卡所以注意官方说明里的For CPU-only Caffe, uncomment CPU_ONLY := 1 in Makefile.config. 然后按下列命令编译
cp Makefile.config.example Makefile.config # Adjust Makefile.config (按照机器情况修改) make all make test make runtest
测试。终端里命令如下。如果没有报错即为安装成功
python import caffe
3.具体配置
基本按照项目网站的Installation设置follow项目
git clone -b master --single-branch https://github.com/richzhang/colorization.git[/code]
cd 到demo目录里cd ~/colorization/demo
运行ipython notebookipython notebook。会自动提取demo目录里的colorization_demo_v0.ipynb并在浏览器里运行。鼠标点击相应的代码点击运行按钮即为运行相应代码块。
相关文章推荐
- python os.path模块
- logback自定义格式转换器
- Android Studio官方文档之工程项目概述篇
- laravel 控制器里 redirect url地址传两个参数的方法
- Python安装Mysql驱动出错解决(最新出炉)
- Python中PyQuery库的使用总结
- Android SDK无法更新解决方式(非常有效)
- 【leetcode】26. Remove Duplicates from Sorted Array
- 【leetcode】25. Reverse Nodes in k-Group
- 申请成功
- php 复习
- EasySwift/YXJXibView OC新建view勾选上xib文件即可自动关联,swift新建view已经不能勾选xib,但是又想用到xib,YXJXibView就能帮你搞定两秒钟搞定!
- 【leetcode】24. Swap Nodes in Pairs
- css3transform应用
- docker实践入门之五
- Ubuntu 16.04 64位 Eclipse 背景色 豆沙绿
- Leetcode 105 Construct Binary Tree from Preorder and Inorder Traversal
- node
- 【leetcode】23. Merge k Sorted Lists
- view的setTag() 和 getTag()应用