Python Forum
Unable to identify Tuple index error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to identify Tuple index error
#5
(Jun-27-2019, 05:11 PM)Yoriz Wrote: data_shape points to the following tuple (index of each value shown below them)
Output:
(3343, 128, 128) # 0 1 2
data_shape[3] gives an index error because the index only goes up to 2

Thank you for the answer ! Yes I figured that was the problem after looking online. So should I just change the data_value to 2 instead of 3 ?

I'm just confused as I followed the. step by step guide on github and only changed the image source, so not sure why the index onnly goes up to 2 ? Could you explain perhaps ?

Thank you for your time !!
Reply


Messages In This Thread
Unable to identify Tuple index error - by appmkl - Jun-26-2019, 09:30 PM
RE: Unable to identify Tuple index error - by Yoriz - Jun-27-2019, 05:11 PM
RE: Unable to identify Tuple index error - by appmkl - Jun-28-2019, 10:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Index out of range error standenman 0 1,100 May-22-2023, 10:35 PM
Last Post: standenman
  [split] Getting Index Error - list index out of range krishna 2 2,621 Jan-09-2021, 08:29 AM
Last Post: buran
  Fatal Python error: initfsencoding: unable to load the file system codec gauravbhardwajee 12 28,211 Apr-30-2020, 07:45 PM
Last Post: barrpath
  Getting Index Error - list index out of range RahulSingh 2 6,166 Feb-03-2020, 07:17 AM
Last Post: RahulSingh
  Can you help me with this error? IndexError: invalid index of a 0-dim tensor. DerBerliner 1 4,185 Feb-28-2019, 05:47 PM
Last Post: Larz60+
  Using pandas, index error fyec 1 4,692 Aug-01-2018, 09:25 AM
Last Post: volcano63
  Regarding index out of bounds error and implementing Loop error in backpropagation al geevaprasa 6 8,572 Apr-20-2018, 09:35 AM
Last Post: Larz60+
  Unable to understand reason for error IndexError: tuple index out of range rajat2504 4 54,135 Dec-09-2016, 11:04 AM
Last Post: Kebap

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020