Colab setup for Part 2 2019

#1

Hi,
I’m trying to set up part 2 on Colab after doing part 1. Since there are dependencies between files for this notebook, how do I setup in a way that will allow me to use colab like I did for Part 1. Should I clone the repository onto my colab instance, or is there a way to use the files directly from Github?

0 Likes

(Zachary Mueller) #2

What I’ve been doing is building the library in my google drive and calling from it. You can run the exportation and everything. Just change the working directory to somewhere in the google drive. I can show an example here in a moment when I have access to my computer

1 Like

#3

Thanks a lot. Used that and works well.

0 Likes

(Korakot Chaovavanich) #4

For the last part (Lesson 13-14). Swift on Colab setup is a bit different. You need to…

!git clone https://github.com/fastai/course-v3.git
!mv course-v3/nbs/swift/* /content
5 Likes

(Joseph Catanzarite) #5

I built this Jupyter notebook that you can use to set up and run the “Deep Learning From the Foundations” notebooks on Google Colab. @okhursheed has verified that it works. Try it and let me know if you run into any problems!

5 Likes

Google Colab Setup for FastAI Part 2 v2
Running lesson 8 in Google colab
Anyone starting the course July 2019
Unable to Run notebooks on COlab
Platform: Colab ✅
Wiki thread: lesson 1
#6

Thanks a ton!

2 Likes

(Joseph Catanzarite) #7

@okursheed Did the notebook work for you, i.e. did it allow you to successfully run the course notebooks in Colab?

0 Likes

#8

Hi @jcatanza. The notebook works well for the first 00_export.ipynb, but it doesn’t when I move on to the next one. I’m unable to import variables from the first converted python script.

0 Likes

(Joseph Catanzarite) #9

If you have time, could you please show the error message that occurred in the next notebook?

0 Likes

#10

Sure. Here’s a link to the notebook.

0 Likes

(Oliver Mueller) #11

I’ve been using Colab+Drive to go through most of part 2, it works well. I just released a blog post describing all the steps necessary to make this work:

If you have any trouble following the steps please let me know!

4 Likes

#12

@jcatanza, I redid the entire process step by step, and it seems to work great now! Thank you!

1 Like

#13

You can use this Jupyter notebook to set up to run the course notebooks on Google Colab.

0 Likes

(royam0820@gmail.com) #15

Thank you!

0 Likes

(Oliver Mueller) #16

I did a follow up on that tutorial. When you’re working with (larger) image datasets some extra steps are necessary:

“Speed up your image training on Google Colab” von Oliver Müller https://link.medium.com/mz2qwYkaz0

0 Likes