Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quickstart tutorial no longer works (loaddataset doesn't exist) #254

Closed
claforte opened this issue Aug 1, 2022 · 6 comments
Closed

Quickstart tutorial no longer works (loaddataset doesn't exist) #254

claforte opened this issue Aug 1, 2022 · 6 comments

Comments

@claforte
Copy link

claforte commented Aug 1, 2022

Hi, this code from https://fluxml.ai/FastAI.jl/dev/documents/notebooks/quickstart.ipynb fails with the latest FastAI.jl release:

using FastAI
data, blocks = loaddataset("imagenette2-320", (Image, Label))
task = ImageClassificationSingle(blocks, size=(256, 256))
learner = tasklearner(task, data, callbacks=[ToGPU(), Metrics(accuracy)])
fitonecycle!(learner, 5, 0.033)

with UndefVarError: loadddataset not defined.
If I replace the 2nd line with data, blocks = load(datarecipes()["imagenette2-320"]) (from an earlier page in the docs), it works.

@lorenzoh
Copy link
Member

lorenzoh commented Aug 2, 2022

Hi Christian, thanks for reporting this!

I think there’s been an issue with the documentation build, as this should be fixed in the docs source on master (see https://github.com/FluxML/FastAI.jl/blob/master/docs/notebooks/quickstart.ipynb).

I’ll leave this open until I get around to releasing 0.5 and subpackages which will be breaking (#240).

@claforte
Copy link
Author

claforte commented Aug 9, 2022

Ok, in the meantime I tried to ] dev FastAI with the latest Master branch, but I can't even get using FastVision to work... i.e. the notebook you linked to doesn't work for me. I'm not familiar with subpackages... is there something special I need to do, to add FastVision and other subpackages, before you officially register them?

@claforte
Copy link
Author

claforte commented Aug 9, 2022

BTW it would be great if there was an easy way to read the previous FastAI.jl documentation... right now it only points to the dev version, instead of the latest version that you registered... (... that presumably is more tested/stable?)

Sorry to bother you during your vacations, I'm just a bit disappointed I'll have to revert to just using Lux or Flux without your neat high-level libraries. ;-)

@claforte
Copy link
Author

claforte commented Aug 9, 2022

Nevermind! This older code works with FastAI.jl v0.4.3:

# Adapted from https://fluxml.ai/FastAI.jl/dev/documents%2Fnotebooks%2Fquickstart.ipynb
using FastAI
using Metalhead

import CairoMakie
CairoMakie.activate!(type="png")

data, blocks = loaddataset("imagenette2-320", (Image, Label))

image,class = sample = getobs(data, 1000)
@show class
image

task = ImageClassificationSingle(blocks, size=(256,256)) # task = ImageClassificationSingle(blocks, size=(256, 256))
learner = tasklearner(task, data, callbacks=[ToGPU(), Metrics(accuracy)], backbone=ResNet(34).layers[1:end-1])
fitonecycle!(learner, 10)
showoutputs(task, learner)

image

Thanks!

@lorenzoh
Copy link
Member

lorenzoh commented Sep 3, 2022

Sorry about this! I didn't want to make a big release right before my absence and me adding versioning support to Pollen.jl is still WIP which created this confusing situation where only the dev docs are shown. I'll leave this open until proper versioning of the documentation is added. Thanks for bearing with that!

@lorenzoh
Copy link
Member

lorenzoh commented Nov 9, 2022

FastAI.jl 0.5 and the subpackages have been released now, along with up-to-date documentation, so I am closing this. Let me know if something is still not working!

@lorenzoh lorenzoh closed this as completed Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants