"vscode:/vscode.git/clone" did not exist on "aa265f74bde0c9e5f8805de82598a7b520f2b0d0"
Unverified Commit 1866fdab authored by dyning's avatar dyning Committed by GitHub
Browse files

Merge pull request #472 from BeyondYourself/BeyondYourself-patch-2

add a file path separator
parents 7ea23776 c538c4cb
...@@ -17,6 +17,7 @@ import cv2 ...@@ -17,6 +17,7 @@ import cv2
import numpy as np import numpy as np
import json import json
import sys import sys
import os
class EASTProcessTrain(object): class EASTProcessTrain(object):
def __init__(self, params): def __init__(self, params):
...@@ -52,7 +53,7 @@ class EASTProcessTrain(object): ...@@ -52,7 +53,7 @@ class EASTProcessTrain(object):
label_infor = label_infor.decode() label_infor = label_infor.decode()
label_infor = label_infor.encode('utf-8').decode('utf-8-sig') label_infor = label_infor.encode('utf-8').decode('utf-8-sig')
substr = label_infor.strip("\n").split("\t") substr = label_infor.strip("\n").split("\t")
img_path = self.img_set_dir + substr[0] img_path = os.path.join(self.img_set_dir, substr[0])
label = json.loads(substr[1]) label = json.loads(substr[1])
nBox = len(label) nBox = len(label)
wordBBs, txts, txt_tags = [], [], [] wordBBs, txts, txt_tags = [], [], []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment