Lesson 3- Camvids List len mismatch (0 vs 2)

(Umaid Zaffar) #1

The error occurs in src.transform() where size = src_size//2. I am new to python as well as deep learning so i wanted to know what shout i do to get rid of it I checked other topics but none seemed to address this.
Here is the code:


I would really appreciate if someone could exactly specify where Im wrong

0 Likes

(Umaid Zaffar) #2

I found my mistake it was:
src_size = np.array(mask.shape[11:])

1 Like

(rors) #3

how did you decide to set mask shape at [11:]) @umaidzz ?

0 Likes

(Umaid Zaffar) #4

Since I am new to python, so i was experimenting with different values. I was assuming .shape is an array of images. A dumb move.

0 Likes

(Umaid Zaffar) #5

@rors101 Do you know how to set jupyter notebook for fastai docs?

0 Likes

(rors) #6

@umaidzz sorry i’m not sure i fully undertand your question?

0 Likes

(Umaid Zaffar) #7

@rors101 I was asking how do i open fastai documentations in jupyter notebook. I looked into it, it was in docs_src folder. I was looking in docs folder where it wasnt present after cloning the library from github.

0 Likes