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 the textdiffuser dataset #1552

Open
Ruby-He opened this issue May 18, 2024 · 2 comments
Open

About the textdiffuser dataset #1552

Ruby-He opened this issue May 18, 2024 · 2 comments

Comments

@Ruby-He
Copy link

Ruby-He commented May 18, 2024

Describe the bug
Model I am using textdiffuser, but I had problems when downloading the dataset laion-ocr

The problem arises when using:

img2dataset --url_list="XX/laion_ocr_image_url/laion-ocr-url.txt" --output_folder=laion_ocr --thread_count=64 --resize_mode=no

I found that the index of the downloaded image and the index of the label information in the compressed package laion-ocr.zip do not match.

As shown in the figure below:
image

why the same key corresponds to different image url ?

@JingyeChen
Copy link
Collaborator

Hi, thanks for your interest in TextDiffuser. Does this issue exist in few cases? Sometimes the image owner may replace the image, resulting in the mismatch of downloaded image.

@Ruby-He
Copy link
Author

Ruby-He commented May 21, 2024

Hi, thanks for your interest in TextDiffuser. Does this issue exist in few cases? Sometimes the image owner may replace the image, resulting in the mismatch of downloaded image.

Finally, I have to use the index you provided in “laion-ocr-index-url.txt” and write a new script to move and rename the image, so that can match the annotaions.

Another question is could I resize the image directly in the "train.py/inference.py", such as
image = Image.open(image_path).convert("RGB")
image = image.resize((512,512))

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