ffn icon indicating copy to clipboard operation
ffn copied to clipboard

Train error,maybe something wrong in bounding_box.py

Open Aliengmx opened this issue 4 years ago • 1 comments

@mjanusz Hi, if I used python2.7 I got the same syntax error with https://github.com/google/ffn/issues/19. And then I transform to python 3.7 I got another new error: def _required(bbox: Optional[BoundingBox]) -> BoundingBox: NameError: name 'Optional' is not defined

Is any help for this issue?

Aliengmx avatar Mar 25 '20 10:03 Aliengmx

Hi @Aliengmx

add import line below to the beginning of file bounding_box.py

from typing import Optional

oradomskyi avatar Apr 16 '20 16:04 oradomskyi