Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用时语法无效!resnet模型的python函数_Python_Google Colaboratory_Resnet - Fatal编程技术网

使用时语法无效!resnet模型的python函数

使用时语法无效!resnet模型的python函数,python,google-colaboratory,resnet,Python,Google Colaboratory,Resnet,我在这里遵循一个指南()并希望运行Tf resnet-50v1。 我在google colabs上使用python。 我已经验证了我的驱动器,并使用它从google drive导入模型: #Load model from drive file_obj = drive.CreateFile({'id': '1XvhUUkujapJm_AfMVaDnYFKsUI9AecWl'}) file_obj.GetContentFile('resnet_v1_50

我在这里遵循一个指南()并希望运行Tf resnet-50v1。 我在google colabs上使用python。 我已经验证了我的驱动器,并使用它从google drive导入模型:

#Load model from drive
file_obj = drive.CreateFile({'id': '1XvhUUkujapJm_AfMVaDnYFKsUI9AecWl'})                       
file_obj.GetContentFile('resnet_v1_50.ckpt')
为了运行模型,我修改了指南中的代码,但我对它不是很熟悉

!python resnet_v1_50.ckpt --test_data_path=/drive/scans/1liqOffGDAEju2AxlhuH3TE0ep7bqGJZS --gpu_list=0 --checkpoint_path=/tmp/east_icdar2015_resnet_v1_50_rbox/ \ --output_dir=/tmp/
其中test_data_path=/drive/scans/1liqOffGDAEju2AxlhuH3TE0ep7bqGJZS是我要在谷歌硬盘中运行的映像的id

运行代码时,我收到此错误

File "resnet_v1_50.ckpt", line 2
    ծ
     ^
SyntaxError: invalid syntax