425776024 / lasertagger-chinese

lasertagger-chinese;lasertagger中文学习案例,案例数据,注释,shell运行
75 stars 15 forks source link

run_lasserTagger时候,为什么一直会运行到tpu上面 #9

Open RyzeLLC opened 3 years ago

RyzeLLC commented 3 years ago

您好,我运行laserTagger时候,do_export设置True,train和eval设置为false。 一直提示 AttributeError: module 'tensorflow.contrib.tpu.python.ops.tpu_ops' has no attribute 'tpu_replicate_metadata'

按理说不应该会在TPU上运行啊。。希望得到您的解答 谢谢

425776024 commented 3 years ago

您好,我运行laserTagger时候,do_export设置True,train和eval设置为false。 一直提示 AttributeError: module 'tensorflow.contrib.tpu.python.ops.tpu_ops' has no attribute 'tpu_replicate_metadata'

按理说不应该会在TPU上运行啊。。希望得到您的解答 谢谢

你好,tf版本是正确的?

RyzeLLC commented 3 years ago

您好,我没有按照您的requirement安装。。。我的是tf1.13.1 我按照您的配置都运行不了

425776024 commented 3 years ago

您好,我没有按照您的requirement安装。。。我的是tf1.13.1 我按照您的配置都运行不了

我的感觉,你仅升级到tf1.15试试tensorflow-gpu==1.15

RyzeLLC commented 3 years ago

我能加您QQ 聊么?我在安装tf1.15

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月12日(星期一) 下午4:15 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [425776024/lasertagger-chinese] run_lasserTagger时候,为什么一直会运行到tpu上面 (#9)

您好,我没有按照您的requirement安装。。。我的是tf1.13.1 我按照您的配置都运行不了

我的感觉,你仅升级到tf1.15试试

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

425776024 commented 3 years ago

GitHub同号,不过最近也很忙,不能参与深度debug

RyzeLLC commented 3 years ago

嗯嗯。那我先安装tf1.15试一下 您那边有能正常运行的laserTagger代码么?方便发我一份么?  git上的实在是运行不了

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月12日(星期一) 下午4:20 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [425776024/lasertagger-chinese] run_lasserTagger时候,为什么一直会运行到tpu上面 (#9)

GitHub同号,不过最近也很忙,不能参与深度debug

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

425776024 commented 3 years ago

加QQ我直接发最后运行的压缩包吧。这个当初随便上传了上来,没仔细考虑过你们的环境安装

RyzeLLC commented 3 years ago

加您了

------------------ 原始邮件 ------------------ 发件人: "425776024/lasertagger-chinese" @.>; 发送时间: 2021年7月12日(星期一) 下午4:26 @.>; @.**@.>; 主题: Re: [425776024/lasertagger-chinese] run_lasserTagger时候,为什么一直会运行到tpu上面 (#9)

加QQ我直接发最后运行的压缩包吧。这个当初随便上传了上来,没仔细考虑过你们的环境安装

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

425776024 commented 3 years ago

嗯嗯。那我先安装tf1.15试一下 您那边有能正常运行的laserTagger代码么?方便发我一份么?  git上的实在是运行不了 ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月12日(星期一) 下午4:20 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [425776024/lasertagger-chinese] run_lasserTagger时候,为什么一直会运行到tpu上面 (#9) GitHub同号,不过最近也很忙,不能参与深度debug — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

还有,不能正常运行可能与./corpus下数据不多有关,我提供的那点数据,是不能正常训练的!

RyzeLLC commented 3 years ago

数据我弄好了

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月12日(星期一) 下午4:27 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [425776024/lasertagger-chinese] run_lasserTagger时候,为什么一直会运行到tpu上面 (#9)

嗯嗯。那我先安装tf1.15试一下 您那边有能正常运行的laserTagger代码么?方便发我一份么?  git上的实在是运行不了 … ------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年7月12日(星期一) 下午4:20 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [425776024/lasertagger-chinese] run_lasserTagger时候,为什么一直会运行到tpu上面 (#9) GitHub同号,不过最近也很忙,不能参与深度debug — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

还有,不能正常运行可能与./corpus下数据不多有关,我提供的那点数据,是不能正常训练的!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

skywindy commented 1 year ago

我遇到了相似的问题,请教大佬们。 predict_utils.py 中的predict_batch函数,self._id_2_tag[label_id] for label_id in example.get_token_labels() 有的序列中会有-2这种id,不知道咋产生的,就报错了。 [819, 884, 318, 435, 906, 928, 928, 928, 928, 928, 928, 928, 928, 921, 113, 214, 732, 25, 456, 637, 227, 893, 414, 703, 276, 497, 690, 329, 884, -2, 414, 828, 252, 87, 344, 536, 690, 414, 299, 932, 118, 229, 217, 489]

dmmhk commented 5 months ago

能发我一份正常的吗?dmm_hk@hotmail.com