0
TF_MODEL_URL = 'https://tfhub.dev/google/on_device_vision/classifier/landmarks_classifier_asia_V1/1'
mo = hub.Module('https://tfhub.dev/google/on_device_vision/classifier/landmarks_classifier_asia_V1/1')
IMAGE_SHAPE = (321,321)
df= pd.read_csv(LABLE_MAP_URL)

the error is

if self.low_memory:
--> 230         chunks = self._reader.read_low_memory(nrows)
    231         # destructive to chunks
    232         data = _concatenate_chunks(chunks)

   1775         index,
   1776         columns,
   1777         col_dict,
-> 1778     ) = self._engine.read(  # type: ignore[attr-defined]
   1779         nrows
   1780     )
       deprecate_kwarg.<locals>._deprecate_kwarg.<locals>.wrapper(*args, **kwargs)
    209     else:
    210         kwargs[new_arg_name] = new_arg_value
--> 211 return func(*args, **kwargs)
furas
  • 134,197
  • 12
  • 106
  • 148
sisir_363
  • 1
  • 1
  • actually i tried to import the tensorflow hub landmark link https://tfhub.dev/google/on_device_vision/classifier/landmarks_classifier_asia_V1/1 – sisir_363 Oct 24 '22 at 20:19
  • please include the [full traceback](//realpython.com/python-traceback) when asking about errors... everything including the `Traceback: (most recent call last)` to the `XXXError: message`. – Michael Delgado Oct 25 '22 at 21:18

1 Answers1

0

The traceback is from pandas IO tools, so the error likely occured when you are reading the .csv. As you didn't show the file and this is not a reproducible example, you should check the file and see what went wrong. You also didn't show the entire traceback so it is difficult to tell what kind of error it is, but I would suggest this part of the traceback you provided seems somewhat similar to the part of panda's official documentation on malformed lines with too many fields.

Edit:

As suspected, the error you showed does appear to be bad lines caused by the dataset, so this may be a possible dupe. Have you tried

data = pd.read_csv(LABLE_MAP_URL, on_bad_lines='skip')

as the answer in the dupe suggested?

Toby
  • 86
  • 3
  • Thanks for your time and here is the full error pics https://at.tumblr.com/wyet/699283922073288704/wvvx06m4rrfv – sisir_363 Oct 27 '22 at 16:46