Comments (3)
make sure you import * from fastbook
image_cat is a function that returns a sample cat image built into the fast.ai lib
import fastbook
fastbook.setup_book()
from fastbook import *
from course20.
thanks, venomoustoad!
I had the same issue. This one line: from fastbook import *
fixes NameError mentioned by sumitpowar above:
from fastbook import *
img1 = PILImage.create(image_cat())
img1.to_thumb(192)
The course page may benefit from this modification.
Best,
PO
from course20.
Still doesn't work. Neither does:
from fastai import *
Turns out that you can corrupt a Kaggle notebook with the wrong imports. Starting from scratch and this works:
! pip install -Uqq fastbook
import fastbook
fastbook.setup_book()
from fastbook import *
img = PILImage.create(image_cat())
img.to_thumb(192)
from course20.
Related Issues (20)
- In "Transfer learning in text" tutorial, the "dls.show_batch()" show wrong outputs
- Unclear text
- Bracket Missing line 45
- search_images_ddg: 'str' object has no attribute 'decode' in Python 3 HOT 1
- A few mistakes in the readme.md text
- Keep-Alive-Actions
- Keep-Alive-Actions
- FastaiSageMakerStack template (https://fastai-cfn.s3.amazonaws.com/sagemaker-cfn-course-v4.yml) fails updating conda due to conda env update dependencies HOT 1
- gradient how to is no more current HOT 1
- Keep-Alive-Actions
- Add docs on how to use iko.ai to go through the course HOT 2
- Keep-Alive-Actions
- Keep-Alive-Actions
- Keep-Alive-Actions
- Instructions in CONTRIBUTING.md state to run nbdev_install_git_hooks as a first step, but it is not found HOT 1
- Keep-Alive-Actions
- Keep-Alive-Actions
- Keep-Alive-Actions
- FastaiSageMakerStack Template does not work
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 course20.