Giter Club home page Giter Club logo

Comments (13)

mpskex avatar mpskex commented on September 21, 2024 1

from convolutional-pose-machine-tf.

FlyFish0101 avatar FlyFish0101 commented on September 21, 2024

我看这个可能是你输入通道的问题。请你检查你的输入图像。 Regards

在 2021年5月14日,19:01,FlyFish0101 @.***> 写道:  [CAUTION: Non-UBC Email] Closed #23. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

万分感谢,把puttext那一段话注释掉就运行成功了

from convolutional-pose-machine-tf.

mpskex avatar mpskex commented on September 21, 2024

from convolutional-pose-machine-tf.

FlyFish0101 avatar FlyFish0101 commented on September 21, 2024

应该是你的图像带 alpha 通道,你检查下

在 2021年5月14日,20:10,FlyFish0101 @.> 写道:  [CAUTION: Non-UBC Email] 我看这个可能是你输入通道的问题。请你检查你的输入图像。 Regards … 在 2021年5月14日,19:01,FlyFish0101 @.> 写道:  [CAUTION: Non-UBC Email] Closed #23. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 万分感谢,把puttext那一段话注释掉就运行成功了 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

请问将npy转换成ckpt的操作大致是什么呢?我搜到一些代码但是感觉不完全适用,谢谢

from convolutional-pose-machine-tf.

mpskex avatar mpskex commented on September 21, 2024

from convolutional-pose-machine-tf.

FlyFish0101 avatar FlyFish0101 commented on September 21, 2024

使用 npy load 模型,再存 ckpt

在 2021年5月14日,20:18,FlyFish0101 @.***> 写道:  [CAUTION: Non-UBC Email] 应该是你的图像带 alpha 通道,你检查下 … 在 2021年5月14日,20:10,FlyFish0101 @.> 写道:  [CAUTION: Non-UBC Email] 我看这个可能是你输入通道的问题。请你检查你的输入图像。 Regards … 在 2021年5月14日,19:01,FlyFish0101 @.> 写道:  [CAUTION: Non-UBC Email] Closed #23. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 万分感谢,把puttext那一段话注释掉就运行成功了 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. 请问将npy转换成ckpt的操作大致是什么呢?我搜到一些代码但是感觉不完全适用,谢谢 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

请问我能否在CPM.py里修改build_model函数,在self.sess.run(tf.global_variables_initializer())这句话后面添加
self.saver = tf.train.Saver()
self.saver.save(self.sess, os.path.join(self.log_dir, "model.ckpt"))
来实现加载并赋值后模型的保存呢
因为npy转ckpt好像要先引入结构再load数据,我是新手感觉您的代码的结构很难自己搭出来,想借用您现成有的模板(CPM.py),不知道这样可行否

from convolutional-pose-machine-tf.

mpskex avatar mpskex commented on September 21, 2024

from convolutional-pose-machine-tf.

FlyFish0101 avatar FlyFish0101 commented on September 21, 2024

不可以,你在构建模型以后,要确保使用了npy的参数才可以save。可以参考 demo 中的代码,npy 读取以后 save session

在 2021年5月15日,11:02,FlyFish0101 @.> 写道:  [CAUTION: Non-UBC Email] 使用 npy load 模型,再存 ckpt … 在 2021年5月14日,20:18,FlyFish0101 @.> 写道:  [CAUTION: Non-UBC Email] 应该是你的图像带 alpha 通道,你检查下 … 在 2021年5月14日,20:10,FlyFish0101 @.> 写道:  [CAUTION: Non-UBC Email] 我看这个可能是你输入通道的问题。请你检查你的输入图像。 Regards … 在 2021年5月14日,19:01,FlyFish0101 @.> 写道:  [CAUTION: Non-UBC Email] Closed #23. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 万分感谢,把puttext那一段话注释掉就运行成功了 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. 请问将npy转换成ckpt的操作大致是什么呢?我搜到一些代码但是感觉不完全适用,谢谢 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. 请问我能否在CPM.py里修改build_model函数,在self.sess.run(tf.global_variables_initializer())这句话后面添加 self.saver = tf.train.Saver() self.saver.save(self.sess, os.path.join(self.log_dir, "model.ckpt")) 来实现加载并赋值后模型的保存呢 — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

np.load(xxx.npy)是在init部分,buildmodel代码运行时间线迟于init的吧

from convolutional-pose-machine-tf.

mpskex avatar mpskex commented on September 21, 2024

from convolutional-pose-machine-tf.

FlyFish0101 avatar FlyFish0101 commented on September 21, 2024

我也有几年没有做 tensorflow v1 了。如果能保证 init variable 不会初始化 weight 就可以了。之后就导出 session 就行了

在 2021年5月15日,11:13,FlyFish0101 @.***> 写道:  [CAUTION: Non-UBC Email] 不可以,你在构建模型以后,要确保使用了npy的参数才可以save。可以参考 demo 中的代码,npy 读取以后 save session … 在 2021年5月15日,11:02,FlyFish0101 @.> 写道:  [CAUTION: Non-UBC Email] 使用 npy load 模型,再存 ckpt … 在 2021年5月14日,20:18,FlyFish0101 @.> 写道:  [CAUTION: Non-UBC Email] 应该是你的图像带 alpha 通道,你检查下 … 在 2021年5月14日,20:10,FlyFish0101 @.> 写道:  [CAUTION: Non-UBC Email] 我看这个可能是你输入通道的问题。请你检查你的输入图像。 Regards … 在 2021年5月14日,19:01,FlyFish0101 @.> 写道:  [CAUTION: Non-UBC Email] Closed #23. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 万分感谢,把puttext那一段话注释掉就运行成功了 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. 请问将npy转换成ckpt的操作大致是什么呢?我搜到一些代码但是感觉不完全适用,谢谢 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. 请问我能否在CPM.py里修改build_model函数,在self.sess.run(tf.global_variables_initializer())这句话后面添加 self.saver = tf.train.Saver() self.saver.save(self.sess, os.path.join(self.log_dir, "model.ckpt")) 来实现加载并赋值后模型的保存呢 — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe. np.load(xxx.npy)是在init部分,buildmodel代码运行时间线迟于init的吧 — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

谢谢大佬!!意思是self.sess.run(tf.global_variables_initializer())可能会不用npy里的参数初始化数据嘛,所以要确保这点嘛?

另附一点疑惑:依据大佬做骨骼点检测的经验,有没有办法只关注某三个点(比如左侧的手腕,胳膊肘和肩)的训练方法呢(因为我们网络的使用场景不用做其他部分检测),或许可以把joints_list的内容改成3个?(大佬见笑了)

from convolutional-pose-machine-tf.

mpskex avatar mpskex commented on September 21, 2024

from convolutional-pose-machine-tf.

FlyFish0101 avatar FlyFish0101 commented on September 21, 2024

第一点,是 第二点,可以,只需要配合你的标注更改一下 pred channel 就可以。 你客气了,回答你的问题是我的义务。

您好,您程序里提供的只关注某些interst joints相关的api非常实用,已经在跑训练了,还想问下,这个mobileCPM网络还有没有进一步裁剪结构的可能,比如把stage改为2可以吗,或者把前面的mobilenet的backbone裁剪一点

from convolutional-pose-machine-tf.

mpskex avatar mpskex commented on September 21, 2024

from convolutional-pose-machine-tf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.