Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seek help! TypeError: expected str, bytes or os.PathLike object, not NoneType #26

Open
DENESTY opened this issue May 21, 2020 · 2 comments

Comments

@DENESTY
Copy link

DENESTY commented May 21, 2020

No description provided.

@DENESTY DENESTY changed the title seek help! Traceback (most recent call last): File "train_ssd.py", line 236, in <module> target_transform=target_transform, is_test=True) File "/home/z/MobileNetV3-SSD-master/vision/datasets/voc_dataset.py", line 17, in __init__ self.root = pathlib.Path(root) File "/usr/lib/python3.6/pathlib.py", line 1001, in __new__ self = cls._from_parts(args, init=False) File "/usr/lib/python3.6/pathlib.py", line 656, in _from_parts drv, root, parts = self._parse_args(args) File "/usr/lib/python3.6/pathlib.py", line 640, in _parse_args a = os.fspath(a) TypeError: expected str, bytes or os.PathLike object, not NoneType seek help! TypeError: expected str, bytes or os.PathLike object, not NoneType May 21, 2020
@DENESTY
Copy link
Author

DENESTY commented May 21, 2020

How to solve this
Traceback (most recent call last):
File "train_ssd.py", line 236, in
target_transform=target_transform, is_test=True)
File "/home/z/MobileNetV3-SSD-master/vision/datasets/voc_dataset.py", line 17, in init
self.root = pathlib.Path(root)
File "/usr/lib/python3.6/pathlib.py", line 1001, in new
self = cls._from_parts(args, init=False)
File "/usr/lib/python3.6/pathlib.py", line 656, in _from_parts
drv, root, parts = self._parse_args(args)
File "/usr/lib/python3.6/pathlib.py", line 640, in _parse_args
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

@jideee
Copy link

jideee commented Jul 14, 2020

Hello bro! Have you solved the problem? I meet this same question in SSD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants