Comments (8)
我也是报的这个错误,解决了吗?
from pytorch_classification.
from pytorch_classification.
我也是报的这个错误,解决了吗?
兄弟问下你这个问题解决了吗???
from pytorch_classification.
from pytorch_classification.
解决了的 我忘记这个报错是具体在哪一部分了 要不加qq联系
…
------------------ 原始邮件 ------------------ 发件人: "lxztju/pytorch_classification" @.>; 发送时间: 2021年4月1日(星期四) 中午11:04 @.>; @.@.>; 主题: Re: [lxztju/pytorch_classification] ValueError: optimizer got an empty parameter list (#26) 我也是报的这个错误,解决了吗? 兄弟问下你这个问题解决了吗??? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
我扣扣598369667,加我以下
from pytorch_classification.
from pytorch_classification.
from pytorch_classification.
#####build the network model
if not cfg.RESUME_EPOCH:
print('****** Training {} ****** '.format(cfg.model_name))
print('****** loading the Imagenet pretrained weights ****** ')
if not cfg.model_name.startswith('efficientnet'):
model = cfg.MODEL_NAMES[cfg.model_name](num_classes=cfg.NUM_CLASSES)
# #冻结前边一部分层不训练
ct = 0
for child in model.children():
ct += 1
# print(child)
if ct < 8:
print(child)
for param in child.parameters():
param.requires_grad = False
in train.py file, I change the "param.requires_grad = False" to "param.requires_grad = True", and problem solved
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
- AttributeError: 'ResNet' object has no attribute 'extract_features' HOT 25
- 请问 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.