Open woshixiaozhou opened 3 years ago
Hello @woshixiaozhou
This error seems like some sort of a random network connection issue
Can you try to rerun the download_ffhq_aging.py
with the --check_invalid_images
flag and see if the problem still exists?
Keep in mind that the initial setup time will be slower because the script will check the validity of every downloaded image
你好@woshixiaozhou
此错误似乎是某种形式的随机网络连接问题
您可以尝试重新运行
download_ffhq_aging.py
带有--check_invalid_images
标志的,看看问题是否仍然存在吗?请记住,初始设置时间会变慢,因为脚本会检查每个下载图像的有效性
Thank you for your reply I tried your method and it did not solve the problem. Is there any other way to solve this problem?
@woshixiaozhou,
Try to see if it happens with the same image every time or is it a different image each time. You would have to change the code a little bit for that and print out the image number. https://github.com/royorel/FFHQ-Aging-Dataset/blob/2ecdcd2511c7e0da7f2a7cf0d839a9f6faafa645/download_ffhq_aging.py#L223-L241
Add this line below line 237
print(os.path.basename(spec['file_path']))
That might help a little bit to understand what's going on
@woshixiaozhou,
Try to see if it happens with the same image every time or is it a different image each time. You would have to change the code a little bit for that and print out the image number. https://github.com/royorel/FFHQ-Aging-Dataset/blob/2ecdcd2511c7e0da7f2a7cf0d839a9f6faafa645/download_ffhq_aging.py#L223-L241
Add this line below line 237
print(os.path.basename(spec['file_path']))
That might help a little bit to understand what's going on
Thank you for your reply The problem is not on the same picture Is this due to my network instability or the server?
I think that might be the case. If that's indeed the issue, then even though that's not an elegant solution, I would suggest running the script with the --check_invalid_images
flag several times until all images are downloaded
Dear author, thank you for sharing. In the process of downloading, I encountered the following problems. How can I solve this problem? Thank you very much for your reply