简体   繁体   中英

How to import python files in Google Colab

So I have been trying to make this file compatible to Google Colab but I'm not able to find any way to do it.

[ 档案整理 ]

EfficientDet-DeepSORT-Tracker is the main folder of this entire package

在此处输入图像描述

This picture is from one of the files placed alongside backbone.py

How to fix the fact that the file isn't able to detect backbone.py?

EDIT for more context: I shared the errors I found when trying to run waymo_open_dataset.py which isn't able to detect the other .py files alongside it.

在此处输入图像描述

According to this past question you could import 'filename' of the filename.py. So in the main.py file you are trying to run in colab, then import the required files in the main.py file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM