Hello, I've been working to create a small CNN from MNIST dataset. I've successfully trained the network. However, while converting the model, it breaks at line 232. Any help would be appreciated
Traceback (most recent call last): File "nn_quantizer.py", line 614, in <module> my_model.get_graph_connectivity() File "nn_quantizer.py", line 232, in get_graph_connectivity current_blob = self.bottom_blob[current_layer][0] IndexError: list index out of range
I got same problem... did you get any solution
Hi,
Just need to replacename: "mnist" -> name: "data"in lenet_train_test.prototxt filethanks
The way Python indexing works is that it starts at 0, so the first number of your list would be [0]. Index Error: List index out of range means you are trying to get an item in a list that doesn't exist. It means that you are referring to n-th element of the python list, while the length of the list is smaller than n. whenever you get this type of error please cross check with items that comes between/middle in range, and insure that their index is not last if you get output then you have made perfect error that mentioned.
An index in Python refers to a position within an ordered list . To retrieve an element of the list, you use the index operator ([]) . Using indexing you can easily get any element by its position.