-
Notifications
You must be signed in to change notification settings - Fork 19
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
RuntimeError: torch.cat(): expected a non-empty list of Tensors #9
Comments
So I tried the same with the demo video truck and got the same error content/data/mp4_videos/truck.mp4 RuntimeError Traceback (most recent call last) in <cell line: 1>() 3 frames /content/RAVE/pipelines/sd_controlnet_rave.py in process_image_batch(self, image_pil_list) RuntimeError: torch.cat(): expected a non-empty list of Tensors |
Hello, it seems that the sample_size is assigned as 0, meaning that either the video is in the wrong path, or for some reason it cannoy read the video. Also note that the frame amount should be more than 9 since you are using 3 as the grid size, meaning that 3x3 grid is going to be initialized. Thanks |
The video 'truck' is in the path designated by the repo /content/RAVE/data/mp4_videos , there does not seem to be anywhere to change the frame amount? Should the video be preprocessed, such as broken down into frames first? If so the notebook does not have a block to do that. I tried another way using webui script and it did start processing it but ran out of memory, video was 25fps for one second, 512x512 |
After running the demo notebook specifying lineart_realistic on a custom video I get this error
RuntimeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 res = run(input_ns)
2 save_dir_name = 'animation.16'
3 save_dir = f'assets/notebook-generated/{save_dir_name}'
4 os.makedirs(save_dir, exist_ok=True)
5 if len(res) == 3:
3 frames
/content/RAVE/pipelines/sd_controlnet_rave.py in process_image_batch(self, image_pil_list)
313 control_torch_list.append(control_image)
314 image_torch_list.append(ipu.pil_img_to_torch_tensor(image_pil))
--> 315 control_torch = torch.cat(control_torch_list, dim=0).to(self.device)
316 img_torch = torch.cat(image_torch_list, dim=0).to(self.device)
317 torch.save(control_torch, os.path.join(self.controls_path, 'control.pt'))
RuntimeError: torch.cat(): expected a non-empty list of Tensors
The text was updated successfully, but these errors were encountered: