mLstudent33
mLstudent33

Reputation: 1175

Colab finishes with a ^C

I'm running a laplacian pyramid program on Colab that is not vectorized so it takes it's time and when it gets to def vizpyramid() it just exits per below:

100% 1/1 [00:00<00:00, 23.74it/s]
def computestack
len grayimgs 2
gray_imgs[0] shape (500, 333)
len lapylpyrcolor 3, len lapylpyrcolor[0] 5
len lapylpyrcolor 3, len lapylpyrcolor[0] 5
fusedgray shape (500, 333)
def vizpyramid
^C

Most of those are from print statements except the 100%... and ^C. I did not push control-C so what is happening? I have checked the function and it works fine on my local machine.

Edit: I tried switching to a None no-GPU runtime and now it won't even run with a !python main.py command.

Upvotes: 11

Views: 8414

Answers (2)

tangxuemei
tangxuemei

Reputation: 121

I met the same problem when I ran python in colab. I found that because the list I generated was too large, it should have occupied all the memory.

Upvotes: 12

Michielver
Michielver

Reputation: 116

"^C" appears for multiple types of interrupt in Colab I noticed. Even if you just press on the stop button (to interrupt execution of a cell) it shows "^C". I can't think of any other reasons why it would show a "^C"

Upvotes: 3

Related Questions