Closed Trentonom0r3 closed 10 months ago
Researching-- Info that would be useful from anyone else experiencing this;
einops 0.6.1
eventlet 0.33.3
exceptiongroup 1.1.3
executing 1.2.0
ezsynth 1.2.1.0
faiss-cpu 1.7.3
filelock 3.9.0
Flask 2.2.3
I didnt get any other errors then this, and its when it tries to import the ezsynth lib.
Im running the provided example
from ezsynth import Ezsynth
STYLE_PATHS = [
r"E:\Downloads\EbSynth-Beta-Win\New folder\keys\frame-0001.png",
r"E:\Downloads\EbSynth-Beta-Win\New folder\keys\frame-0017.png",
r"E:\Downloads\EbSynth-Beta-Win\New folder\keys\frame-0033.png",
r"E:\Downloads\EbSynth-Beta-Win\New folder\keys\frame-0049.png"
]
IMAGE_FOLDER = r"E:\Downloads\EbSynth-Beta-Win\New folder\video"
OUTPUT_FOLDER = r"E:\Downloads\EbSynth-Beta-Win\New folder\video\\test"
ez = Ezsynth(styles=STYLE_PATHS, imgsequence=IMAGE_FOLDER, flow_model='sintel')
ez.set_guides().stylize(output_path=OUTPUT_FOLDER)
# results = ez.set_guides().stylize() # returns a list of images as numpy arrays
einops 0.6.1 eventlet 0.33.3 exceptiongroup 1.1.3 executing 1.2.0 ezsynth 1.2.1.0 faiss-cpu 1.7.3 filelock 3.9.0 Flask 2.2.3
I didnt get any other errors then this, and its when it tries to import the ezsynth lib.
Im running the provided example
from ezsynth import Ezsynth STYLE_PATHS = [ r"E:\Downloads\EbSynth-Beta-Win\New folder\keys\frame-0001.png", r"E:\Downloads\EbSynth-Beta-Win\New folder\keys\frame-0017.png", r"E:\Downloads\EbSynth-Beta-Win\New folder\keys\frame-0033.png", r"E:\Downloads\EbSynth-Beta-Win\New folder\keys\frame-0049.png" ] IMAGE_FOLDER = r"E:\Downloads\EbSynth-Beta-Win\New folder\video" OUTPUT_FOLDER = r"E:\Downloads\EbSynth-Beta-Win\New folder\video\\test" ez = Ezsynth(styles=STYLE_PATHS, imgsequence=IMAGE_FOLDER, flow_model='sintel') ez.set_guides().stylize(output_path=OUTPUT_FOLDER) # results = ez.set_guides().stylize() # returns a list of images as numpy arrays
hmm. That is an odd one. Try manually uninstalling, then re-installing, as well as clearing cache. It's possible older version is still mixed in with the new one somehow, causing the issue.
Check your python folder, should be something like this.
C:\Python311\Lib\site-packages\ezsynth
Your folder in that path should have these files;
"C:\Python311\Lib\site-packages\ezsynth\image_style.py"
"C:\Python311\Lib\site-packages\ezsynth\opencv_world480.dll"
"C:\Python311\Lib\site-packages\ezsynth\optical_flow.py"
"C:\Python311\Lib\site-packages\ezsynth\reconstruction.py"
"C:\Python311\Lib\site-packages\ezsynth\stylizer.py"
"C:\Python311\Lib\site-packages\ezsynth\stylizevideo.py"
"C:\Python311\Lib\site-packages\ezsynth\utils.py"
"C:\Python311\Lib\site-packages\ezsynth\__pycache__"
"C:\Python311\Lib\site-packages\ezsynth\alt_cuda_corr"
"C:\Python311\Lib\site-packages\ezsynth\core"
"C:\Python311\Lib\site-packages\ezsynth\models"
"C:\Python311\Lib\site-packages\ezsynth\__init__.py"
"C:\Python311\Lib\site-packages\ezsynth\classutils.py"
"C:\Python311\Lib\site-packages\ezsynth\ebsynth.pyd"
"C:\Python311\Lib\site-packages\ezsynth\edge_detection.py"
"C:\Python311\Lib\site-packages\ezsynth\guide_classes.py"
"C:\Python311\Lib\site-packages\ezsynth\histogram_blend.py"
You can try manually deleting the pycache there as well.
Damn not sure. Tried removing everything related to it, the folder structure and contents is the same in the site-pkgs etc
Damn not sure. Tried removing everything related to it, the folder structure and contents is the same in the site-pkgs etc
What python version are you using?
32 bit or 64 bit?
You can also try this test script out, just add the path to the .pyd from your installation.
import ctypes
import os
# Replace this with the actual path to your .pyd file
pyd_path = ""
if os.path.exists(pyd_path):
try:
ctypes.cdll.LoadLibrary(pyd_path)
print("Successfully loaded .pyd")
except Exception as e:
print("Failed to load .pyd:", str(e))
else:
print(f".pyd file not found at {pyd_path}")
If that returns any errors please post them here. If it doesn't... back to the drawing board, lol. Sorry for all the trouble!
All good :)
Failed to load .pyd: Could not find module 'C:\Users\User\Desktop\Ezsynth-dev\ezsynth\ebsynth.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
The file is there
Also tried
Failed to load .pyd: Could not find module 'C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\ezsynth\ebsynth.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
All good :)
Failed to load .pyd: Could not find module 'C:\Users\User\Desktop\Ezsynth-dev\ezsynth\ebsynth.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
The file is there
Also tried
Failed to load .pyd: Could not find module 'C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\ezsynth\ebsynth.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
Ahhh, I think I figured it out. Library is built for python 3.11, you're on 3.10. I wouldn't expect it to cause the issue, but I just tried importing ezsynth in 3.10 vs 3.11, and it only worked in 3.11 for me.
ahh nice. Good work tracking it down ! Will open a venv.
ahh nice. Good work tracking it down ! Will open a venv.
Great! Let me know if it works out or just close the issue so I know!
Though im running into this trying to run the dev branch ImportError: DLL load failed while importing ebsynth: The specified module could not be found.
Dont think i was running into this trying main a while back.
Originally posted by @DrakenZA in https://github.com/Trentonom0r3/Ezsynth/issues/5#issuecomment-1736091429