Comments (25)
@vaerdu 请问您是在什么环境下运行的? Python和PyTorch 版本分别是多少啊
from pytorch_classification.
from pytorch_classification.
from pytorch_classification.
请问是如何解决的呢,我也遇到了同样的问题
from pytorch_classification.
请问是怎么解决这个问题的呀~
from pytorch_classification.
请问是如何解决的呢,我也遇到了同样的问题
请问您解决了吗?
from pytorch_classification.
from pytorch_classification.
好像是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.
你好,我直接用train.py进行训练,将网络改成resnet50,,但是得出来的效果并不好,只有50%的准确率,请问是哪里出问题了吗
from pytorch_classification.
你好,我直接用train.py进行训练,将网络改成resnet50,,但是得出来的效果并不好,只有50%的准确率,请问是哪里出问题了吗
我也是,呜呼,这个怎么解决呀
from pytorch_classification.
你好,我直接用train.py进行训练,将网络改成resnet50,,但是得出来的效果并不好,只有50%的准确率,请问是哪里出问题了吗
我也是,呜呼,这个怎么解决呀
我后面没有用作者的train代码了,用了自己的代码去训练resnet网络,效果还可以,这样只要模型的输出通道是一样的,不影响后续的工作
from pytorch_classification.
那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀
from pytorch_classification.
那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀
有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你
from pytorch_classification.
那你有没有遇到这里提到的ModuleAttributeError: 'ResNet' object has no attribute 'extract_features'这个问题呀,你是怎么解决的呀
有的,这个是因为作者没有写resnet模型中提取某一层特征的extract_features函数,他只写了提取efficientnet特征的extract_features函数,所以你需要在cnn_ml将out = model.extract_features(img)这部分的代码换成你自己的特征提取的函数,这个可以上网搜一下,有很多教你怎么提取网络中某一层特征的方法,如果你找不到的话,我也可以提供给你
你可以提供给我一下吗,谢谢
from pytorch_classification.
那你有没有遇到这里提到的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.
那你有没有遇到这里提到的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.
那你有没有遇到这里提到的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.
那你有没有遇到这里提到的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.
那你有没有遇到这里提到的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.
那你有没有遇到这里提到的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.
那你有没有遇到这里提到的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.
那你有没有遇到这里提到的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.
from pytorch_classification.
from pytorch_classification.
那你有没有遇到这里提到的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)
- 标签会覆盖吗? HOT 1
- RuntimeError HOT 3
- 您好,运行cnn_ml时出现torch.nn.modules.module.ModuleAttributeError: 'ResNet' object has no attribute 'extract_features' HOT 1
- 请问 resnext101_32x32.pth 文件在哪里 HOT 4
- 请问使用该框架训练的模型如何转为wts文件
- 是不是少了一些文件呢 HOT 2
- 关于多卡训练的问题
- 多批次推理
- 数据集导入
- 使用内置的VGG时报错__init__() missing 1 required positional argument: 'features'
- RuntimeError: “nll_loss_forward_reduce_cuda_kernel_2d_index“ not implemented for ‘Int‘
- 请问pth模型如何转换onnx呢,按照转onnx教程转换失败,通过netron发现跟预训练版本结构不一样
- cannot import name 'get_random_eraser' from 'data' (C:xxxxxxx\data\__init__.py)这个怎么解决额 HOT 1
- 请问每次运行不保存 best.pt吗
- TypeError: __init__() got an unexpected keyword argument 'weights' HOT 3
- 是不是并不支持 resume 继续训练?
- V1 版本没有评估吗? 请教您 HOT 1
- 训练十几个epoch可能会闪退
- 关于train.py中LR调整的问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch_classification.