Closed Zyin055 closed 1 year ago
This issue should caused by the misuse of the double quotes and single quotes:
In Windows Command Prompt, only double quotes are interpreted correctly -- single quotes are treated as part of the value.
That is why it works on Linux and MaxOS, but fails on Windows.
Now it should be fixed in 282165a789cfe354e5f9d4661e24fa10e68592b8, but I don't have Windows machine in my hand. Could you please pull the latest version and help test it? @Zyin055
That fixed the installation issue.
I tried it and it works when the target is an image, but if I set the target to a video it errors, but I guess that's an issue for the main repo.
Traceback (most recent call last):█████████████████████████████████████████████████▎ | 355/363 [00:03<00:00, 129.15it/s]
File "C:\Stuff\AI\SD\stable-diffusion-webui-LATEST\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "C:\Stuff\AI\SD\stable-diffusion-webui-LATEST\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "C:\Stuff\AI\SD\stable-diffusion-webui-LATEST\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\Stuff\AI\SD\stable-diffusion-webui-LATEST\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\Stuff\AI\SD\stable-diffusion-webui-LATEST\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "C:\Stuff\AI\SD\stable-diffusion-webui-LATEST\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
result = context.run(func, *args)
File "C:\Stuff\AI\SD\stable-diffusion-webui-LATEST\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "C:\Stuff\AI\SD\stable-diffusion-webui-LATEST\extensions\sd-webui-facefusion\facefusion\uis\components\output.py", line 51, in start
conditional_process()
File "C:\Stuff\AI\SD\stable-diffusion-webui-LATEST\extensions\sd-webui-facefusion\facefusion\core.py", line 192, in conditional_process
process_video()
File "C:\Stuff\AI\SD\stable-diffusion-webui-LATEST\extensions\sd-webui-facefusion\facefusion\core.py", line 216, in process_video
if predict_video(facefusion.globals.target_path):
File "C:\Stuff\AI\SD\stable-diffusion-webui-LATEST\extensions\sd-webui-facefusion\facefusion\predictor.py", line 57, in predict_video
_, probabilities = opennsfw2.predict_video_frames(video_path = video_path, frame_interval = FRAME_INTERVAL)
File "C:\Stuff\AI\SD\stable-diffusion-webui-LATEST\venv\lib\site-packages\opennsfw2\_inference.py", line 184, in predict_video_frames
cv2.destroyAllWindows() # pylint: disable=no-member
cv2.error: OpenCV(4.8.1) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1266: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvDestroyAllWindows'
During first time setup on Automatic1111 1.6.0 I get these errors:
ERROR: Invalid requirement: "'opencv-python" ERROR: Invalid requirement: "'opennsfw2" ERROR: Invalid requirement: "'tensorflow" ERROR: Invalid requirement: "'tqdm" ModuleNotFoundError: No module named 'tensorflow'
Also is there anything special we need to do for ffmpeg on Windows? I already have it installed from a few years back from another project.
ffmpeg
is a recognized command in my cmd prompt.