Platform: Kaggle Kernels

Added a note in the top post

1 Like

Seems time limit was increased to 9 hours as per kaggle docs, didnā€™t test it yetā€¦

1 Like

I think this is a result of insufficient shared memory, you can work around it my setting num_workers=0

https://www.kaggle.com/product-feedback/72606#latest-429470

1 Like

Hello,
i want to try out my own data set:
so i uploaded it as a .zip, and it shows in ā€¦input directory
my question now is, how do i specify it as a path and if i need to do any unzipping for the images?

Edit:
i tried to:

path = Path(ā€™ā€¦/input/ā€™)
path_img = Path(ā€™ā€¦/input/celebs/celebs.zipā€™)

and when i run:
fnames = get_image_files(path_img)
fnames[:5]

i get an error: FileNotFoundError: [Errno 2] No such file or directory: 'ā€¦/input/celebs/celebs.zipā€™

45bad7273fe32fb258d87ecf641122fa

Hi,
I am in lesson 1 and when I try to download the pet data I get this error message.

gaierror Traceback (most recent call last)
/opt/conda/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)
140 conn = connection.create_connection(
ā€“> 141 (self.host, self.port), self.timeout, **extra_kw)
142

/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
59
ā€”> 60 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):

Any ideas?

Solution: Although, I had enabled the internet connection, I needed to refresh my browser for it to work. All good now.

Hi @andresa,
Can you double check if the ā€˜internet connectionā€™ is enabled in the kernel?

Yes it is?

Hi Sanyam, after a refresh I have it working.
Thanks

1 Like

Kindly edit your question and add the solution there as well, Thanks.

Hi Sanyam,
All done.

1 Like

@wdhorton @miwojc

Can you please add me too? My kaggle user is dromosys

Thanks

Iā€™ve fixed the following kernels that had BusErrors and Iā€™ve made some minor error fixes as well:

I think these errors were due to a version difference. Please let me know if you spot any other issues.
Thanks to @Ajaxon6255 for sharing many fixes. :slight_smile:

I am trying to run lesson 2 and the notebook keeps refreshing and losing all my work. How can I fix this?

Not sure why thatā€™s happening.
Do you have a fixed speed connection? It might be an outage at kaggleā€™s end.

does pressing commit save my work?

How do you save your work? My work is constantly lost by kaggle refreshing?

@andresa Gotcha! So by default youā€™ll lose the data when you refresh, you need to commit to save the work.
Warning: For Lesson 2, since the number of images downloaded>500, the kernels will give an error because this is larger than kaggleā€™s limit.

I am trying to train a model with
learn = create_cnn(data, models.resnet34, metrics=error_rate)

I get the following error:
OSError: [Errno 30] Read-only file system: '../input/wildkraut/wildkraut/models'

My kernel has an internet connection, I refreshed the site and my GPU is onā€¦ I uploaded the dataset in a normal way and the dataBunch shows upā€¦ Thankful for any help <3

You should pass the ā€˜model_dirā€™ keyword arg to create_cnn. You can set it to tmp/models

3 Likes

Great - thanks @wdhorton that seemed to work. I guess model_dir = '/tmp/models' tells the create_cnn that it should open up a new folder and save the created model inside? (Couldnā€™t find an explanation for the keyword arg neither in the docs, nor anywhere elseā€¦)