Coder Social home page Coder Social logo

Comments (25)

yuguangtongxing avatar yuguangtongxing commented on May 20, 2024

@vaerdu 请问您是在什么环境下运行的? Python和PyTorch 版本分别是多少啊

from pytorch_classification.

vaerdu avatar vaerdu commented on May 20, 2024

from pytorch_classification.

yuguangtongxing avatar yuguangtongxing commented on May 20, 2024

from pytorch_classification.

GroundZeros avatar GroundZeros commented on May 20, 2024

请问是如何解决的呢,我也遇到了同样的问题

from pytorch_classification.

KeqingWu avatar KeqingWu commented on May 20, 2024

请问是怎么解决这个问题的呀~

from pytorch_classification.

KeqingWu avatar KeqingWu commented on May 20, 2024

请问是如何解决的呢,我也遇到了同样的问题

请问您解决了吗?

from pytorch_classification.

vaerdu avatar vaerdu commented on May 20, 2024

from pytorch_classification.

KeqingWu avatar KeqingWu commented on May 20, 2024

好像是import方式不对,要么就直接把要导入的文件添加到环境里,百度可以搜一搜解决办法 在 2021-12-29 22:26:47,"KeqingWu" @.> 写道: 请问是如何解决的呢,我也遇到了同样的问题 请问您解决了吗? — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.>

好的,谢谢您~

from pytorch_classification.

LifeIsBright-heihei avatar LifeIsBright-heihei commented on May 20, 2024

你好,我直接用train.py进行训练,将网络改成resnet50,,但是得出来的效果并不好,只有50%的准确率,请问是哪里出问题了吗

from pytorch_classification.

bestfzy avatar bestfzy commented on May 20, 2024

你好,我直接用train.py进行训练,将网络改成resnet50,,但是得出来的效果并不好,只有50%的准确率,请问是哪里出问题了吗

我也是,呜呼,这个怎么解决呀

from pytorch_classification.

LifeIsBright-heihei avatar LifeIsBright-heihei commented on May 20, 2024

你好,我直接用train.py进行训练,将网络改成resnet50,,但是得出来的效果并不好,只有50%的准确率,请问是哪里出问题了吗

我也是,呜呼,这个怎么解决呀

我后面没有用作者的train代码了,用了自己的代码去训练resnet网络,效果还可以,这样只要模型的输出通道是一样的,不影响后续的工作

from pytorch_classification.

bestfzy avatar bestfzy commented on May 20, 2024

那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀

from pytorch_classification.

LifeIsBright-heihei avatar LifeIsBright-heihei commented on May 20, 2024

那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀

有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你

from pytorch_classification.

bestfzy avatar bestfzy commented on May 20, 2024

那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀

有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你

你可以提供给我一下吗,谢谢

from pytorch_classification.

LifeIsBright-heihei avatar LifeIsBright-heihei commented on May 20, 2024

那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀

有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你

你可以提供给我一下吗,谢谢

https://blog.csdn.net/qq_34611579/article/details/88411232
我是按照这个博主的方法,差不多复制粘贴就能用了

from pytorch_classification.

LifeIsBright-heihei avatar LifeIsBright-heihei commented on May 20, 2024

那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀

有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你

你可以提供给我一下吗,谢谢

具体只要改一下你要哪一层的特征就行了,还有这个代码可以直接放在cnn_ml.py中

from pytorch_classification.

bestfzy avatar bestfzy commented on May 20, 2024

那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀

有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你

你可以提供给我一下吗,谢谢

具体只要改一下你要哪一层的特征就行了,还有这个代码可以直接放在cnn_ml.py中

谢谢您

from pytorch_classification.

LifeIsBright-heihei avatar LifeIsBright-heihei commented on May 20, 2024

那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀

有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你

你可以提供给我一下吗,谢谢

具体只要改一下你要哪一层的特征就行了,还有这个代码可以直接放在cnn_ml.py中

谢谢您

不客气,相互学习,相互促进

from pytorch_classification.

menglulu123 avatar menglulu123 commented on May 20, 2024

那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀

有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你

你可以提供给我一下吗,谢谢

具体只要改一下你要哪一层的特征就行了,还有这个代码可以直接放在cnn_ml.py中

谢谢您

不客气,相互学习,相互促进

请问怎么确定自己用的模型是resnet呀,我的报错一样,但是我是mobilenetv2

from pytorch_classification.

LifeIsBright-heihei avatar LifeIsBright-heihei commented on May 20, 2024

那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀

有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你

你可以提供给我一下吗,谢谢

具体只要改一下你要哪一层的特征就行了,还有这个代码可以直接放在cnn_ml.py中

谢谢您

不客气,相互学习,相互促进

请问怎么确定自己用的模型是resnet呀,我的报错一样,但是我是mobilenetv2

这个需要把你模型的网络输出来看一下

from pytorch_classification.

menglulu123 avatar menglulu123 commented on May 20, 2024

那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀

有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你

你可以提供给我一下吗,谢谢

具体只要改一下你要哪一层的特征就行了,还有这个代码可以直接放在cnn_ml.py中

谢谢您

不客气,相互学习,相互促进

请问怎么确定自己用的模型是resnet呀,我的报错一样,但是我是mobilenetv2

这个需要把你模型的网络输出来看一下

这个我知道了,请问是直接把forward(self,x)放到cnn_ml.py中吗,然后out=model.extract_features(img)这句要怎么改呀

from pytorch_classification.

LifeIsBright-heihei avatar LifeIsBright-heihei commented on May 20, 2024

那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀

有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你

你可以提供给我一下吗,谢谢

具体只要改一下你要哪一层的特征就行了,还有这个代码可以直接放在cnn_ml.py中

谢谢您

不客气,相互学习,相互促进

请问怎么确定自己用的模型是resnet呀,我的报错一样,但是我是mobilenetv2

这个需要把你模型的网络输出来看一下

这个我知道了,请问是直接把forward(self,x)放到cnn_ml.py中吗,然后out=model.extract_features(img)这句要怎么改呀

我上传了这部分的代码,https://github.com/LifeIsBright-heihei/cnn-SVM.git
有需要的话可以看看

from pytorch_classification.

menglulu123 avatar menglulu123 commented on May 20, 2024

from pytorch_classification.

menglulu123 avatar menglulu123 commented on May 20, 2024

from pytorch_classification.

wangsengithub avatar wangsengithub commented on May 20, 2024

那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object 没有属性 'extract_features'这个问题呀,你是怎么解决的呀

有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你

你可以提供给我一下吗,谢谢

具体只要改一下你要哪一层的特征就行了,还有这个代码可以直接放在cnn_ml.py中

谢谢您

不客气,相互学习,相互促进

请问怎么确定自己用的模型是resnet呀,我的报错一样,但是我是mobilenetv2

这个需要把你模型的网络输出来看一下

这个我知道了,请问是直接把forward(self,x)放到cnn_ml.py中吗,然后out=model.extract_features(img)这句要怎么改呀

我上传了这部分的代码,https://github.com/LifeIsBright-heihei/cnn-SVM.git 有需要的话可以看看

请问V1版本能评估吗

from pytorch_classification.

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.