ZhuoYulang / IF-MMIN

MIT License
25 stars 3 forks source link

win下运行 #4

Open cyang810 opened 7 months ago

cyang810 commented 7 months ago

您好,如果要在Windows下运行,需要做什么修改?和Linux下运行结果差异大吗?谢谢

ZhuoYulang commented 7 months ago

你好,由于项目里涉及到频繁的日志文件读写,为了管理多线程读写任务,这个项目里使用了“fcntl”的包。这个包是Linux独有的包,没有windows的对应版本,因此无法在windows环境下运行。如果想要在windows环境下运行,只需要将fcntl的相关内容注释掉即可。fcntl的引入位置在utils/logger.py中。注释后会影响日志文件的读写操作,有可能会因为多线程同时读写同一个文件而报错,理论上对模型本身没有影响效果。---- 回复的原邮件 @.>发送日期2024年1月15日 @.>@.>主题[ZhuoYulang/IF-MMIN] win下运行 (Issue #4)您好,如果要在Windows下运行,需要做什么修改?和Linux下运行结果差异大吗?谢谢—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

cyang810 commented 7 months ago

好的,感谢您的回复