SD-CN-Animation icon indicating copy to clipboard operation
SD-CN-Animation copied to clipboard

Possible new error from latest version

Open wordbrew opened this issue 2 years ago • 7 comments

First off, loving the extension. Just installed v0.8 and now it is throwing the following error:

An exception occurred while trying to process the frame: list index out of range
Traceback (most recent call last):
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/SD-CN-Animation/scripts/base_ui.py", line 114, in process
    yield from vid2vid.start_process(*args)
  File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/SD-CN-Animation/scripts/core/vid2vid.py", line 114, in start_process
    utils.set_CNs_input_image(args_dict, Image.fromarray(curr_frame))
IndexError: list index out of range

When I start the process, it errors out almost immediately.

Hope this helps.

wordbrew avatar May 11 '23 05:05 wordbrew

Do you have ControlNet extension installed? Vid2vid mode always supposed to be used with control net active.

volotat avatar May 11 '23 06:05 volotat

Yup. Latest ControlNet installed and active. I restarted the session and it started processing, but am now getting a completely different error. I'm going to try completely restarting the server.

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 399, in run_predict
    output = await app.get_blocks().process_api(
  File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1302, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1236, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "/usr/local/lib/python3.10/dist-packages/gradio/components.py", line 2148, in postprocess
    processed_files = (self._format_video(y), None)
  File "/usr/local/lib/python3.10/dist-packages/gradio/components.py", line 2207, in _format_video
    video = self.make_temp_copy_if_needed(video)
  File "/usr/local/lib/python3.10/dist-packages/gradio/components.py", line 248, in make_temp_copy_if_needed
    temp_dir = self.hash_file(file_path)
  File "/usr/local/lib/python3.10/dist-packages/gradio/components.py", line 220, in hash_file
    with open(file_path, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: ''

wordbrew avatar May 11 '23 06:05 wordbrew

Could you please tell what OS do you use and what version of webui? Is it automatic or any other fork?

volotat avatar May 11 '23 07:05 volotat

after update , i get the error following, my system os is macos the webui i use: https://github.com/brkirch/stable-diffusion-webui/releases Traceback (most recent call last): File "/Users/admin/work/vi/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/routes.py", line 399, in run_predict output = await app.get_blocks().process_api( File "/Users/admin/work/vi/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1302, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "/Users/admin/work/vi/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1236, in postprocess_data prediction_value = block.postprocess(prediction_value) File "/Users/admin/work/vi/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components.py", line 2148, in postprocess processed_files = (self._format_video(y), None) File "/Users/admin/work/vi/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components.py", line 2207, in _format_video video = self.make_temp_copy_if_needed(video) File "/Users/admin/work/vi/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components.py", line 248, in make_temp_copy_if_needed temp_dir = self.hash_file(file_path) File "/Users/admin/work/vi/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components.py", line 220, in hash_file with open(file_path, "rb") as f: FileNotFoundError: [Errno 2] No such file or directory: ''

pipicoming avatar May 11 '23 09:05 pipicoming

It is weird that there is nothing related to the extension in the traceback. I assume that there is some path location used in the script that is not correctly formatted for macos. Unfortunately I can't fix it without knowing where exactly the problem occurs in the script.

volotat avatar May 13 '23 02:05 volotat

Took me a while to respond on this, but I'm actually using google colab, so that is linux operating system. So that means three of us have all run into the error, each on a different os (mac, windows, and linux). I'm using The Last Ben's Fast A1111

wordbrew avatar May 13 '23 04:05 wordbrew

Took me a while to respond on this, but I'm actually using google colab, so that is linux operating system. So that means three of us have all run into the error, each on a different os (mac, windows, and linux). I'm using The Last Ben's Fast A1111

i have also the same issue on google Colab with The Last Ben's Fast A1111

Noofayroz avatar May 25 '23 19:05 Noofayroz