zamp / vid2vid

MIT License
19 stars 3 forks source link

WD14 Tagger does not work #13

Open moon47usaco opened 1 year ago

moon47usaco commented 1 year ago

Trying to replace the pos prompt with WD tagger will not work.

Executing pass: RenderPass (comfyui)
Traceback (most recent call last):
  File "S:\Ai\Repos\vid2vid\main.py", line 110, in <module>
    main()
  File "S:\Ai\Repos\vid2vid\main.py", line 86, in main
    processors.process_comfyui(rp_config, config, emotion_tokens)
  File "S:\Ai\Repos\vid2vid\processors.py", line 102, in process_comfyui
    run_stable_diffusion(input_dir+file, video_dir+file, output_dir+file, config, extra_config, get_tokens_for_frame(frame, emotion_tokens))
  File "S:\Ai\Repos\vid2vid\processors.py", line 17, in run_stable_diffusion
    image = comfyui.process_image(input_file_path, src_file_path, config, extra_config, emotion_tokens)
  File "S:\Ai\Repos\vid2vid\comfyui.py", line 92, in process_image
    workflow_json = json.load(open(workflow))
  File "C:\Users\moon4\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
  File "C:\Users\moon4\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 6782: character maps to <undefined>

S:\Ai\Repos\vid2vid>pause

Screenshot 2023-09-27 003432

axb2035 commented 1 year ago

I haven't been able to repeat this bug, but I suspect it is related to the funky snake emoji in the title of the node. It looks like it is failing to decode a character when loading the workflow .json file.

As a workaround try editing the title of the node to be just "WD14 Tagger" and see if it works.