Comments (3)
(1)参考这篇博客,里面有这节课的图片下载代码
folder = 'teddys'
file = 'urls_teddys.txt'
path = Path('data/bears')
dest = path/folder
dest.mkdir(parents=True, exist_ok=True)
download_images(path/file, dest, max_pics=200)
# 如果下载出现问题,uncomment下列代码查看
# download_images(path/file, dest, max_pics=20, max_workers=0)
(2)去fastai源代码里找image_download的定义
(3)fastai官网类似帖子
来自fastai中文笔记
Step 4: Saving your data files
如果你希望改写你的文件,你需要允许你的Colaboratory instance读取和改写你的 Google Drive. 你只需要在每一个notebook的第一个Cell中写入以下代码
from google.colab import drive
drive.mount('/content/gdrive', force_remount=True)
root_dir = "/content/gdrive/My Drive/"
base_dir = root_dir + 'fastai-v3/'
现在,Google Drive 变成了一个文件系统允许标准python读写文件. 不要忘记给所有notebook的根目录地址前加上 base_dir . 例如, 在 lesson2-download.ipynb 5th cell, 做一下修改
path = Path(base_dir + 'data/bears')
dest = path/folder
dest.mkdir(parents=True, exist_ok=True)
from school-of-ai-beijing.
from school-of-ai-beijing.
不一定管用,上面是从drive里读数据,好像跟你的不一样,必要的话,把那你的代码贴出来
from school-of-ai-beijing.
Related Issues (12)
- 【问题】Kaggle环境问题——提问示例 HOT 1
- 【问题】学员疑惑集中解答
- 【问题】fit_one_cycle到底什么原理? HOT 1
- 【第四课】作业汇总-RNN与NLP专题 HOT 4
- 【结业答辩】内容安排 HOT 7
- 【公告】如何提交作业? HOT 2
- 【问题】如何上传图片 HOT 1
- 【第二课】作业汇总-机器学习专题 HOT 4
- 【第一课】作业汇总--宠物分类 HOT 13
- 【第三课】作业汇总-神经网络专题 HOT 5
- 【作业】第一课---宠物分类---王瑞华
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from school-of-ai-beijing.