-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Comments
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). |
Ok, in the meantime I tried to |
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 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. ;-) |
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) Thanks! |
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! |
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! |
Hi, this code from
https://fluxml.ai/FastAI.jl/dev/documents/notebooks/quickstart.ipynb
fails with the latest FastAI.jl release: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.The text was updated successfully, but these errors were encountered: