Amirhossein75/Image-Captioning-Blip
Image-to-Text • 0.2B • Updated • 2
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
!kaggle datasets download -d adityajn105/flickr8k
!unzip -q /content/flickr8k.zip
import pandas as pd
from datasets import Dataset, Image
df = pd.read_csv("/content/captions.txt")
df["image"] = df["image"].apply(lambda x: f"/content/Images/{x}")
dataset = Dataset.from_pandas(df).cast_column("image", Image())
dataset.push_to_hub("ariG23498/flickr8k")