CADDM icon indicating copy to clipboard operation
CADDM copied to clipboard

about running under Windows

Open ez4encef opened this issue 2 years ago • 6 comments

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

ez4encef avatar Oct 07 '23 06:10 ez4encef

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 avatar Oct 15 '23 23:10 makaylacmac2

@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.

makaylacmac2 avatar Oct 17 '23 00:10 makaylacmac2

我在 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

Ding-yd avatar Feb 01 '24 07:02 Ding-yd

I also get the same error

wang-qichang avatar Mar 04 '24 09:03 wang-qichang

Thanks!

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

Thank you so much! This one works!

BensonRen avatar Nov 25 '24 23:11 BensonRen

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

you are right men! here is something you need to do is delete ->from . import _jpegpy

healer-hub avatar Jan 02 '25 14:01 healer-hub