You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\keras\utils\traceback_utils.py:67, in filter_traceback..error_handler(*args, **kwargs)
65 except Exception as e: # pylint: disable=broad-except
66 filtered_tb = _process_traceback_frames(e.traceback)
---> 67 raise e.with_traceback(filtered_tb) from None
68 finally:
69 del filtered_tb
File c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\eager\execute.py:54, in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
52 try:
53 ctx.ensure_initialized()
---> 54 tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
55 inputs, attrs, num_outputs)
56 except core._NotOkStatusException as e:
57 if name is not None:
InvalidArgumentError: Graph execution error:
2 root error(s) found.
(0) INVALID_ARGUMENT: TypeError: Can't mix strings and bytes in path components
Traceback (most recent call last):
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\ops\script_ops.py", line 271, in call
ret = func(*args)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper
return func(*args, **kwargs)
File "C:\Users\sarad\AppData\Local\Temp_autograph_generated_filendjfu22r.py", line 16, in parse
x = ag.converted_call(ag__.ld(read_image), (ag__.ld(dataset_path), ag__.ld(x)), None, fscope_1)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 335, in converted_call
return _call_unconverted(f, args, kwargs, options, False)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 459, in _call_unconverted
return f(*args)
File "C:\Users\sarad\AppData\Local\Temp\ipykernel_11472\1296749178.py", line 17, in read_image
path = os.path.join(root_path,'images','images',file_path)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\ntpath.py", line 117, in join
genericpath._check_arg_types('join', path, *paths)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\genericpath.py", line 155, in _check_arg_types
raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: Can't mix strings and bytes in path components
(1) INVALID_ARGUMENT: TypeError: Can't mix strings and bytes in path components
Traceback (most recent call last):
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\ops\script_ops.py", line 271, in call
ret = func(*args)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper
return func(*args, **kwargs)
File "C:\Users\sarad\AppData\Local\Temp_autograph_generated_filendjfu22r.py", line 16, in parse
x = ag.converted_call(ag__.ld(read_image), (ag__.ld(dataset_path), ag__.ld(x)), None, fscope_1)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 335, in converted_call
return _call_unconverted(f, args, kwargs, options, False)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 459, in _call_unconverted
return f(*args)
File "C:\Users\sarad\AppData\Local\Temp\ipykernel_11472\1296749178.py", line 17, in read_image
path = os.path.join(root_path,'images','images',file_path)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\ntpath.py", line 117, in join
genericpath._check_arg_types('join', path, *paths)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\genericpath.py", line 155, in _check_arg_types
raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: Can't mix strings and bytes in path components
I tried training this model on https://www.kaggle.com/datasets/polomarco/chest-ct-segmentation/data dataset
But getting the following errors
My TF version with GPU GTX 1050Ti is
tf.version
'2.8.0'
InvalidArgumentError Traceback (most recent call last)
Cell In[56], line 1
----> 1 model.fit(
2 train_dataset,
3 epochs=1,
4 validation_data=valid_dataset,
5 callbacks=callbacks
6 )
File c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\keras\utils\traceback_utils.py:67, in filter_traceback..error_handler(*args, **kwargs)
65 except Exception as e: # pylint: disable=broad-except
66 filtered_tb = _process_traceback_frames(e.traceback)
---> 67 raise e.with_traceback(filtered_tb) from None
68 finally:
69 del filtered_tb
File c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\eager\execute.py:54, in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
52 try:
53 ctx.ensure_initialized()
---> 54 tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
55 inputs, attrs, num_outputs)
56 except core._NotOkStatusException as e:
57 if name is not None:
InvalidArgumentError: Graph execution error:
2 root error(s) found.
(0) INVALID_ARGUMENT: TypeError: Can't mix strings and bytes in path components
Traceback (most recent call last):
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\ops\script_ops.py", line 271, in call
ret = func(*args)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper
return func(*args, **kwargs)
File "C:\Users\sarad\AppData\Local\Temp_autograph_generated_filendjfu22r.py", line 16, in parse
x = ag.converted_call(ag__.ld(read_image), (ag__.ld(dataset_path), ag__.ld(x)), None, fscope_1)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 335, in converted_call
return _call_unconverted(f, args, kwargs, options, False)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 459, in _call_unconverted
return f(*args)
File "C:\Users\sarad\AppData\Local\Temp\ipykernel_11472\1296749178.py", line 17, in read_image
path = os.path.join(root_path,'images','images',file_path)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\ntpath.py", line 117, in join
genericpath._check_arg_types('join', path, *paths)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\genericpath.py", line 155, in _check_arg_types
raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: Can't mix strings and bytes in path components
(1) INVALID_ARGUMENT: TypeError: Can't mix strings and bytes in path components
Traceback (most recent call last):
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\ops\script_ops.py", line 271, in call
ret = func(*args)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 642, in wrapper
return func(*args, **kwargs)
File "C:\Users\sarad\AppData\Local\Temp_autograph_generated_filendjfu22r.py", line 16, in parse
x = ag.converted_call(ag__.ld(read_image), (ag__.ld(dataset_path), ag__.ld(x)), None, fscope_1)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 335, in converted_call
return _call_unconverted(f, args, kwargs, options, False)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\site-packages\tensorflow\python\autograph\impl\api.py", line 459, in _call_unconverted
return f(*args)
File "C:\Users\sarad\AppData\Local\Temp\ipykernel_11472\1296749178.py", line 17, in read_image
path = os.path.join(root_path,'images','images',file_path)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\ntpath.py", line 117, in join
genericpath._check_arg_types('join', path, *paths)
File "c:\Users\sarad\Anaconda3\envs\tftorch25\lib\genericpath.py", line 155, in _check_arg_types
raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: Can't mix strings and bytes in path components
0 successful operations.
0 derived errors ignored. [Op:__inference_train_function_44655]
The text was updated successfully, but these errors were encountered: