ryanzhangfan commited on
Commit
09fcab5
1 Parent(s): 59624a6

resize images

Browse files
Files changed (1) hide show
  1. demo/meta.py +5 -5
demo/meta.py CHANGED
@@ -8,7 +8,7 @@
8
  # Email : zhangfan@baai.ac.cn
9
  # Institute : Beijing Academy of Artificial Intelligence (BAAI)
10
  # Create On : 2023-12-12 02:54
11
- # Last Modified : 2023-12-20 16:41
12
  # File Name : meta.py
13
  # Description :
14
  #
@@ -145,11 +145,11 @@ class DataMeta:
145
  def build(cls, text=None, image=None, coordinate=None, frames=None, is_error=False, *, resize: bool = True):
146
  ins = cls()
147
  ins.text = text if text != "" else None
148
- # ins.image = cls.resize(image, force=resize)
149
- ins.image = image
150
  ins.coordinate = cls.fix(coordinate)
151
- # ins.frames = cls.resize(frames, force=resize)
152
- ins.frames = frames
153
 
154
  if is_error:
155
  ins.datatype = DataType.ERROR
 
8
  # Email : zhangfan@baai.ac.cn
9
  # Institute : Beijing Academy of Artificial Intelligence (BAAI)
10
  # Create On : 2023-12-12 02:54
11
+ # Last Modified : 2023-12-20 16:45
12
  # File Name : meta.py
13
  # Description :
14
  #
 
145
  def build(cls, text=None, image=None, coordinate=None, frames=None, is_error=False, *, resize: bool = True):
146
  ins = cls()
147
  ins.text = text if text != "" else None
148
+ ins.image = cls.resize(image, force=resize)
149
+ # ins.image = image
150
  ins.coordinate = cls.fix(coordinate)
151
+ ins.frames = cls.resize(frames, force=resize)
152
+ # ins.frames = frames
153
 
154
  if is_error:
155
  ins.datatype = DataType.ERROR