20种小技巧,玩转Google Colab
AI算法与图像处理
共 9147字,需浏览 19分钟
·
2020-09-30 07:34
点击上方“AI算法与图像处理”,选择加"星标"或“置顶”
重磅干货,第一时间送达
来源:机器之心
Google Colab 给广大的 AI 开发者提供了免费的 GPU,你可以在上面轻松地跑 Tensorflow、Pytorch 等深度学习框架。但关于 Colab 的使用技巧你又掌握了多少呢?这篇文章将介绍 20 种 Colab 使用技巧,帮你提高使用效率。
https://github.com/fastai/course-v3/blob/master/nbs/dl1/00_notebook_tutorial.ipynb
https://colab.research.google.com/github/fastai/course-v3/blob/master/nbs/dl1/00_notebook_tutorial.ipynb
https://github.com/fastai/course-v3/blob/master/nbs/dl1/00_notebook_tutorial.ipynb
https://githubtocolab.com/fastai/course-v3/blob/master/nbs/dl1/00_notebook_tutorial.ipynb
!pip install flask-ngrok flask==0.12.2
from flask import Flask
from flask_ngrok import run_with_ngrok
app = Flask(__name__)
run_with_ngrok(app)
'/') .route(
def hello():
return 'Hello World!'
if __name__ == '__main__':
app.run()
tensorflow_version 1.x
tensorflow_version 2.x
%load_ext tensorboard
%tensorboard --logdir logs
!nvidia-smi
!cat /proc/cpuinfo
import psutil
ram_gb = psutil.virtual_memory().total / 1e9
print(ram_gb)
!bash
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/notebooks/basic_features_overview.ipynb)
%load_ext google.colab.data_table
Download Miniconda installation script!wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
Make it executable!chmod +x Miniconda3-latest-Linux-x86_64.sh
in silent mode!bash ./Miniconda3-latest-Linux-x86_64.sh -b -f -p /usr/local Start installation
in current environment Make conda packages available
import sys
sys.path.append('/usr/local/lib/python3.7/site-packages/')
!conda install -y flask
!nohup bash ping.sh &
下载1:OpenCV黑魔法
在「AI算法与图像处理」公众号后台回复:OpenCV黑魔法,即可下载小编精心编写整理的计算机视觉趣味实战教程
下载2 CVPR2020
在「AI算法与图像处理」公众号后台回复:CVPR2020,即可下载1467篇CVPR 2020论文 个人微信(如果没有备注不拉群!) 请注明:地区+学校/企业+研究方向+昵称
觉得有趣就点亮在看吧
评论