Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DAN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Automatic Text Recognition
DAN
Merge requests
!189
Something went wrong on our end
Do not download images if they already exist
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Do not download images if they already exist
keep-existing-images
into
main
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Manon Blanco
requested to merge
keep-existing-images
into
main
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
06f97ecc
Show latest version
1 file
+
3
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
06f97ecc
Do not download images if they already exist
· 06f97ecc
Manon Blanco
authored
1 year ago
dan/datasets/extract/utils.py
+
3
−
0
Options
@@ -40,6 +40,9 @@ class EntityType(NamedTuple):
def
download_image
(
element
:
Element
,
im_path
:
Path
):
if
im_path
.
exists
():
return
im_path
tries
=
1
# retry loop
while
True
:
Loading