Skip to content
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

about running under Windows #26

Open
ez4encef opened this issue Oct 7, 2023 · 4 comments
Open

about running under Windows #26

ez4encef opened this issue Oct 7, 2023 · 4 comments

Comments

@ez4encef
Copy link

ez4encef commented Oct 7, 2023

Hello, can your code run under Windows? I have successfully run your code under Ubuntu. But under windows I always get the error “ImportError: cannot import name '_jpegpy' from partially initialized module 'lib.data_preprocess.utils.jpegpy' (most likely due to a circular import)”, this problem has been solved under Ubuntu by generating .so files, I would like to bother to ask why

@makaylacmac2
Copy link

makaylacmac2 commented Oct 15, 2023

I am experiencing many issues running this code on windows. The particular problem you mentioned I solved by modifying the /lib/data_preprocess/utils/jpegpy/jpegpy.py file like in the screenshot below.

I am now working on handling a KeyError from the key './train_images\manipulated_sequences\Deepfakes\183_253\frame_0'. I modified the config file to begin with '.\train_images.... as well as still receiving the same key error.

image

@makaylacmac2
Copy link

@ez4encef Downgrading python in my environment to 3.10 got me past this issue at least. Now I am having a "No such file or directory" issue with the efficientnet-b3-5fb5a3c3.pth file mentioned in the latest issue posted.

@Ding-yd
Copy link

Ding-yd commented Feb 1, 2024

我在 Windows 上运行此代码时遇到了许多问题。您提到的特定问题我通过修改 /lib/data_preprocess/utils/jpegpy/jpegpy.py 文件解决了,如下面的屏幕截图所示。

我现在正在努力处理来自密钥“./train_images\manipulated_sequences\Deepfakes\183_253\frame_0”的KeyError。我修改了配置文件以“.\train_images...”开头。以及仍然收到相同的密钥错误。

图像

Hi, I still get the same error after using your method

@wang-qichang
Copy link

I also get the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants