我想在当前文件目录中导入一个名为 DataGenerator 的类:
/content/gdrive/My Drive/mrcnn_fire/ssd/python_files/object_detection_2d_data_generator.py
我导入如下:
from content.gdrive.My Drive.mrcnn_fire.ssd.python_files.object_detection_2d_data_generator import DataGenerator
它给了我以下错误:
File "<ipython-input-3-7d861f8abbeb>", line 4
from content.gdrive.My Drive.mrcnn_fire.ssd.python_files.object_detection_2d_data_generator import DataGenerator
^
SyntaxError: invalid syntax
Qyouu
杨魅力
相关分类