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

train.txt求补充 #6

Open
timeForgiven opened this issue Dec 16, 2024 · 2 comments
Open

train.txt求补充 #6

timeForgiven opened this issue Dec 16, 2024 · 2 comments

Comments

@timeForgiven
Copy link

你好,非常欣赏你们的文章💖在DID数据训练的时候,我发现train.txt缺失,然后我自己设计python代码写了一下。但是总是出现类似这样的错误:File "D:\FADformer\datasets\DID_Dataloader.py", line 188, in getitem
res = self.get_images(index)
File "D:\FADformer\datasets\DID_Dataloader.py", line 170, in get_images
rain_img = imfrombytes(read_img255(rain_path), float32=True)
File "D:\FADformer\datasets\DID_Dataloader.py", line 67, in read_img255
with open(filename, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: './datasets/DIDTrain\Source\5265.jpg 5265.jpg'。当我把5265.jpg 5265.jpg从train.txt删除之后,又出现新的图片无法找到。错误我花了很长时间没能排除😢。能否分享一下你们项目中./datasets目录下不同数据集对应的txt文件?谢谢

@timeForgiven
Copy link
Author

问题目前解决了,train.txt我之前写错了,现在没有这方面问题了

你好,非常欣赏你们的文章💖在DID数据训练的时候,我发现train.txt缺失,然后我自己设计python代码写了一下。但是总是出现类似这样的错误:File "D:\FADformer\datasets\DID_Dataloader.py", line 188, in getitem res = self.get_images(index) File "D:\FADformer\datasets\DID_Dataloader.py", line 170, in get_images rain_img = imfrombytes(read_img255(rain_path), float32=True) File "D:\FADformer\datasets\DID_Dataloader.py", line 67, in read_img255 with open(filename, 'rb') as f: FileNotFoundError: [Errno 2] No such file or directory: './datasets/DIDTrain\Source\5265.jpg 5265.jpg'。当我把5265.jpg 5265.jpg从train.txt删除之后,又出现新的图片无法找到。错误我花了很长时间没能排除😢。能否分享一下你们项目中./datasets目录下不同数据集对应的txt文件?谢谢

@Aoyama7Hai
Copy link
Contributor

好的,有问题请随时反馈

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

2 participants