Closed jueming0312 closed 3 months ago
You didn't download the model
I have now downloaded two models and modified sd_model_cfg.py. Should I modify any other configurations?
root@9ebfd57c673a:/workspace/Rerender_A_Video# ll models/
total 19121436
drwxr-xr-x 1 root root 90 Aug 4 08:00 ./
drwxr-xr-x 1 root root 125 Aug 4 08:12 ../
-rw-r--r-- 1 root root 5710753329 Aug 4 07:36 control_sd15_canny.pth
-rw-r--r-- 1 root root 5710750165 Aug 4 07:41 control_sd15_hed.pth
-rw-r--r-- 1 root root 18768907 Aug 4 07:30 gmflow_sintel-0c07dcb3.pth
-rw-r--r-- 1 root root 2132625894 Dec 3 2023 realisticVisionV60B1_v60B1VAE.safetensors
-rw-r--r-- 1 root root 5672745097 Nov 14 2023 revAnimated_v11.safetensors
-rw-r--r-- 1 root root 334695179 Aug 4 07:41 vae-ft-mse-840000-ema-pruned.ckpt
root@9ebfd57c673a:/workspace/Rerender_A_Video# cat sd_model_cfg.py
# The model dict is used for webUI only
model_dict = {
'Stable Diffusion 1.5': '',
'revAnimated_v11': 'models/revAnimated_v11.safetensors',
'realisticVisionV20_v20': 'models/realisticVisionV60B1_v60B1VAE.safetensors'
}
When I run the Example configs Sample 3 video, the following error message appears.
[ WARN:0@2.322] global loadsave.cpp:241 findDecoder imread_('result/pexels-koolshooters-7322716/video/0271.png'): can't open/read file: check file path/integrity
[ WARN:0@2.322] global loadsave.cpp:241 findDecoder imread_('result/pexels-koolshooters-7322716/video/0272.png'): can't open/read file: check file path/integrity
Process Process-4:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/workspace/Rerender_A_Video/video_blend.py", line 109, in process_sequences
process_one_sequence(i, video_sequence)
File "/workspace/Rerender_A_Video/video_blend.py", line 76, in process_one_sequence
flow_calc.get_flow(i1, i2, flow_seq[j])
File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/workspace/Rerender_A_Video/flow/flow_utils.py", line 170, in get_flow
image1 = torch.from_numpy(image1).permute(2, 0, 1).float()
TypeError: expected np.ndarray (got NoneType)
/usr/local/lib/python3.10/dist-packages/torch/functional.py:507: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3549.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
/usr/local/lib/python3.10/dist-packages/torch/functional.py:507: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3549.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
/usr/local/lib/python3.10/dist-packages/torch/functional.py:507: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3549.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
[ WARN:0@101.333] global loadsave.cpp:241 findDecoder imread_('result/pexels-koolshooters-7322716/video/0231.png'): can't open/read file: check file path/integrity
Process Process-3:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/workspace/Rerender_A_Video/video_blend.py", line 109, in process_sequences
process_one_sequence(i, video_sequence)
File "/workspace/Rerender_A_Video/video_blend.py", line 76, in process_one_sequence
flow_calc.get_flow(i1, i2, flow_seq[j])
File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/workspace/Rerender_A_Video/flow/flow_utils.py", line 170, in get_flow
image1 = torch.from_numpy(image1).permute(2, 0, 1).float()
TypeError: expected np.ndarray (got NoneType)
OS: Ubuntu 22.04 driver version: 550.90.07 cuda version: 11.8