Skip to content

Commit

Permalink
fix new hf dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
piercus committed Feb 17, 2024
1 parent 809d85f commit a2e5639
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ use_gyro_dropout = false
hf_repo = "refiners/unsplash-25k-cogvlm-captions"
revision = "main"
resize_image_max_size = 512
caption_key = "ai_description"
split = "train[200:]"

[checkpointing]
Expand All @@ -71,7 +70,6 @@ use_wandb = true
hf_repo = "refiners/unsplash-25k-cogvlm-captions"
revision = "main"
resize_image_max_size = 512
caption_key = "ai_description"
split = "train[:20]"

[evaluation]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ use_gyro_dropout = false
hf_repo = "refiners/unsplash-25k-cogvlm-captions"
revision = "main"
resize_image_max_size = 512
caption_key = "ai_description"
split = "train[200:]"

[checkpointing]
Expand All @@ -71,7 +70,6 @@ use_wandb = true
hf_repo = "refiners/unsplash-25k-cogvlm-captions"
revision = "main"
resize_image_max_size = 512
caption_key = "ai_description"
split = "train[:20]"

[evaluation]
Expand Down
2 changes: 1 addition & 1 deletion src/refiners/training_utils/huggingface_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def load_hf_dataset(

dataset = dataset.map(
function=download_image,
input_columns=["url"],
input_columns=["photo_image_url"],
fn_kwargs={
"dl_manager": DownloadManager(),
},
Expand Down

0 comments on commit a2e5639

Please sign in to comment.