Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
08a6e7a7
Unverified
Commit
08a6e7a7
authored
Dec 18, 2023
by
Rockerz
Committed by
GitHub
Dec 18, 2023
Browse files
Fix indentation error - semantic_segmentation.md (#28117)
Update semantic_segmentation.md
parent
71d47f0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
docs/source/en/tasks/semantic_segmentation.md
docs/source/en/tasks/semantic_segmentation.md
+1
-2
No files found.
docs/source/en/tasks/semantic_segmentation.md
View file @
08a6e7a7
...
@@ -276,8 +276,7 @@ You could also create and use your own dataset if you prefer to train with the [
...
@@ -276,8 +276,7 @@ You could also create and use your own dataset if you prefer to train with the [
"label": sorted(label_paths)})
"label": sorted(label_paths)})
dataset = dataset.cast_column("image", Image())
dataset = dataset.cast_column("image", Image())
dataset = dataset.cast_column("label", Image())
dataset = dataset.cast_column("label", Image())
return dataset
return dataset
# step 1: create Dataset objects
# step 1: create Dataset objects
train_dataset = create_dataset(image_paths_train, label_paths_train)
train_dataset = create_dataset(image_paths_train, label_paths_train)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment