Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
648a43fd
"ppocr/vscode:/vscode.git/clone" did not exist on "fce0a57dec5635022d4170ba4a15e32a432b9cc7"
Commit
648a43fd
authored
Jul 08, 2021
by
魏大毛
Browse files
增加打开的数据集文件夹的功能,且移动原文件夹会提示,代码格式规范
parent
22d3ead4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
PPOCRLabel/PPOCRLabel.py
PPOCRLabel/PPOCRLabel.py
+3
-4
No files found.
PPOCRLabel/PPOCRLabel.py
View file @
648a43fd
...
...
@@ -1460,13 +1460,12 @@ class MainWindow(QMainWindow, WindowMixin):
defaultOpenDirPath
=
self
.
lastOpenDir
else
:
if
self
.
lang
==
'ch'
:
self
.
actions
.
open_dataset_dir
.
setEnabled
(
False
)
self
.
msgBox
.
warning
(
self
,
"提示"
,
"
\n
原文件夹已不存在,请从新选择数据集路径!"
)
defaultOpenDirPath
=
os
.
path
.
dirname
(
self
.
filePath
)
if
self
.
filePath
else
'.'
else
:
self
.
actions
.
open_dataset_dir
.
setEnabled
(
False
)
self
.
msgBox
.
warning
(
self
,
"Warn"
,
"
\n
The original folder no longer exists, please choose the data set path again!"
)
defaultOpenDirPath
=
os
.
path
.
dirname
(
self
.
filePath
)
if
self
.
filePath
else
'.'
self
.
actions
.
open_dataset_dir
.
setEnabled
(
False
)
defaultOpenDirPath
=
os
.
path
.
dirname
(
self
.
filePath
)
if
self
.
filePath
else
'.'
def
importDirImages
(
self
,
dirpath
,
isDelete
=
False
):
if
not
self
.
mayContinue
()
or
not
dirpath
:
...
...
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