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

YML file parsing issue #3

Open
pandaaditi91-1 opened this issue Nov 8, 2023 · 0 comments
Open

YML file parsing issue #3

pandaaditi91-1 opened this issue Nov 8, 2023 · 0 comments

Comments

@pandaaditi91-1
Copy link

pandaaditi91-1 commented Nov 8, 2023

Hello, I'm running this on Google Colab.
It is showing there's an unexpected : (colon) in line no. 8 of the train.yml file - where MODEL.MODE has been defined.
But there is no syntax error there. The error:

**`Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/config/__init__.py", line 803, in load
    items = p.container()
  File "/usr/local/lib/python3.10/dist-packages/config/parser.py", line 292, in container
    result = self.mapping_body()
  File "/usr/local/lib/python3.10/dist-packages/config/parser.py", line 195, in mapping_body
    raise pe
config.parser.ParserError: Unexpected ':' at (8, 7)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/content/Real-Fundus/./train_code/train.py", line 3, in <module>
    opt = Config('/content/Real-Fundus/train_code/train.yml')
  File "/usr/local/lib/python3.10/dist-packages/config/__init__.py", line 707, in __init__
    self.load_file(stream_or_path, kwargs.get('encoding'))
  File "/usr/local/lib/python3.10/dist-packages/config/__init__.py", line 816, in load_file
    self.load(f)
  File "/usr/local/lib/python3.10/dist-packages/config/__init__.py", line 807, in load
    raise cfe
config.ConfigFormatError: Unexpected ':' at (8, 7)`**

Tried googling it but unable to find any solution. Please help.

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

1 participant