使用时语法无效!resnet模型的python函数
我在这里遵循一个指南()并希望运行Tf resnet-50v1。 我在google colabs上使用python。 我已经验证了我的驱动器,并使用它从google drive导入模型:使用时语法无效!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
#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