Yaml.scanner.ScannerError: mapping values are not allowed here
HunterS80 opened this issue · 1 comments
(vqgan) C:\Users\Travis\VQGAN-CLIP>python generate.py -p "A painting of an apple in a fruit bowl"
Warning: No GPU found! Using the CPU instead. The iterations will be slow.
Perhaps CUDA/ROCm or the right pytorch version is not properly installed?
Traceback (most recent call last):
File "C:\Users\Travis\VQGAN-CLIP\generate.py", line 546, in
model = load_vqgan_model(args.vqgan_config, args.vqgan_checkpoint).to(device)
File "C:\Users\Travis\VQGAN-CLIP\generate.py", line 516, in load_vqgan_model
config = OmegaConf.load(config_path)
File "C:\Users\Travis\anaconda3\envs\vqgan\lib\site-packages\omegaconf\omegaconf.py", line 188, in load
obj = yaml.load(f, Loader=get_yaml_loader())
File "C:\Users\Travis\anaconda3\envs\vqgan\lib\site-packages\yaml_init_.py", line 81, in load
return loader.get_single_data()
File "C:\Users\Travis\anaconda3\envs\vqgan\lib\site-packages\yaml\constructor.py", line 49, in get_single_data
node = self.get_single_node()
File "C:\Users\Travis\anaconda3\envs\vqgan\lib\site-packages\yaml\composer.py", line 36, in get_single_node
document = self.compose_document()
File "C:\Users\Travis\anaconda3\envs\vqgan\lib\site-packages\yaml\composer.py", line 58, in compose_document
self.get_event()
File "C:\Users\Travis\anaconda3\envs\vqgan\lib\site-packages\yaml\parser.py", line 118, in get_event
self.current_event = self.state()
File "C:\Users\Travis\anaconda3\envs\vqgan\lib\site-packages\yaml\parser.py", line 193, in parse_document_end
token = self.peek_token()
File "C:\Users\Travis\anaconda3\envs\vqgan\lib\site-packages\yaml\scanner.py", line 129, in peek_token
self.fetch_more_tokens()
File "C:\Users\Travis\anaconda3\envs\vqgan\lib\site-packages\yaml\scanner.py", line 223, in fetch_more_tokens
return self.fetch_value()
File "C:\Users\Travis\anaconda3\envs\vqgan\lib\site-packages\yaml\scanner.py", line 577, in fetch_value
raise ScannerError(None, None,
yaml.scanner.ScannerError: mapping values are not allowed here
in "C:\Users\Travis\VQGAN-CLIP\checkpoints\vqgan_imagenet_f16_16384.yaml", line 43, column 15
ran the earlier code and haven't been able to find how to fix.
downloaded from https://heibox.uni-heidelberg.de/d/a7530b09fed84f80a887/files/?p=%2Fconfigs%2Fmodel.yaml&dl=1 and then renamed the model to vqgan_imagenet_f16_16384 which worked