Platform: Kaggle Kernels

There is a way to download csv file without commit… but I don’t know anything about download the model… assume is .pth file?

yes I know about the csv method but it only works for files around 2mb and csv files https://www.kaggle.com/rtatman/download-a-csv-file-from-a-kernel
it is a pkl file, being able to download any file would be great though as even after commiting I cancel the commit and I get a error that folder structure is too large, more than 6 and no outputs files. Im looking to a workaround now.

I would try this:
https://www.kaggle.com/rtatman/download-a-csv-file-from-a-kernel#467667

from IPython.display import FileLinks
FileLinks('.') # input argument is specified folder

I do not know if there is a download limit though…

1 Like

the solution seems to be around zipping the file and then deleted the folder contents to not get the too many outputs error
!zip -r output.zip /kaggle/working/
!rm -rf /kaggle/working/*

currently testing this

So I was able to get the commit to pass but there is not output zip file, is there a specific directory I need to move the output.zip file to get it to show up as output?

Thanks for sharing it!
I tried it just now, a model file with size 241MB can be downloaded successfully!

@Daniel glad to hear this worked!

You probably haven’t saved the model in the correct directory… Otherwise, the model should be downloadable from the output section of the kaggle kernel

I tried this method i get this


it is saved under /kaggle/working/stylegan/results/, I was able to upload the model to dropbox from kaggle using a script

This doesn’t look like from the kaggle kernel… you should be able to just press the link for the file you want and download it…

when I click on the link that is the page I get

Hey all, I’m getting Bus Errors when trying to look at a batch from my DataBunch. I’ve successfully downloaded the images into the kernel (I don’t know if this is the correct way to say that) and have created the data bunch but the following line is throwing errors:

data.show_batch(rows=3, figsize=(7,8), num_workers=0)

I’m also getting bus errors when trying to commit the kernel. Is this a problem on Kaggle’s end?


I was facing same problem as yours, this is the solution i came up with

Hey all!

I am getting errors with the lesson 3 planets kernel, could someone help me with the updated commands? I think ImageItemList got removed.

Hi. When I was doing the second lesson I wanted to try to run the bear recognition model on my machine. As they say in the video it’s better to learn the neural network with GPU but after model is ready I can use a CPU for image recognition. I saved a model to a file in a Kaggle kernel but I can’t find a way of downloading it. Is there a good way to get files from kernel or it’d be easier to do it in different environment?

I am sorry I did not get back to you. I did not see this response until now. Did you get this to work?

if you export the file to the main directory, it should come up in the output tab of the kernel where you can download it

The only directory I see in the tab (Workspace section) is the input directory that located at /kaggle/input. The directory is in RO so I can’t move a file there. I tried to place a file in /, /kaggle etc. but can’t make this file to appear in the output tab.

try placing the file in ../