Open tensarflow opened 2 years ago
Hi @tensarflow,
I had the same error. To fix it, change
self.cfg = yaml.load((ds_dir / 'config.yaml').read_text(), Loader=yaml.FullLoader)
to
self.cfg = yaml.load((ds_dir / 'config.yaml').read_text(), Loader=yaml.UnsafeLoader)
in datasets/synthetic_dataset.py.
It works with the provided YAML file and you don't have to delete any lines in the files.
Hey everyone!
Thanks for the great work and thanks for sharing the code.
I have an issue when trying to visualize the dataset I generated synthetically with the synthetic data generation tool provided by this repo. I run the notebook
inspect_dataset
and get following error in the second cell:I think there is a problem with the structure of the YAML file. When I delete
!!python/object:argparse.Namespace
in the first line and!!python/object/apply:pathlib.PosixPath
in the third line inside the YAML file of the dataset, I get following error:When I try to validate the content of the YAML file with https://codebeautify.org/yaml-validator, I get errors in both versions. I think there is something with the
!!
expressions. While python seems to not have a problem with these expressions when I remove the two lines mentioned above, but rather has a problem with the content of file, it cant find thescene_kwargs
attribute.Any help is appreciated. Thanks in advance