Comments (12)
You need https://tensorpack.readthedocs.io/tutorial/symbolic.html#use-models-outside-tensorpack
from efficient-ai-backbones.
What's the version of your tensorflow and tensorpack? I recommend TensorFlow-1.13.1, Tensorpack-0.9.7.
from efficient-ai-backbones.
@gtfaiwxm Have you known how to train the Ghostnet?
from efficient-ai-backbones.
@PistonY Thanks for you attention. We trained GhostNet using the tricks similar to MobileNetV3 paper, including Label smoothing, No decay bias and Dropout.
from efficient-ai-backbones.
I think you have the training example for your dataset. Just replace your network with GhostNet and train it.
from efficient-ai-backbones.
OK,thanks
from efficient-ai-backbones.
OK,thanks
Hi , I was going to replace my network with Ghostnet but it keep throwing bug in tensorpack part.
This example works fine with MobileNetv2.
File "/media/e/hujiang/anaconda3/envs/tf/lib/python3.6/site-packages/tensorpack/models/batch_norm.py", line 176, in BatchNorm training = ctx.is_training AttributeError: 'NoneType' object has no attribute 'is_training'
Can you tell me how you handle it ?
from efficient-ai-backbones.
What's the version of your tensorflow and tensorpack? I recommend TensorFlow-1.13.1, Tensorpack-0.9.7.
Oh thanks! I was using tf 1.5.0 and tensorpack 0.9.9 indeed.
But it seems doesn't work after attempt. Got the same error.
Guessing that's because my training example doesn't suit it?
Could tell me any recomending training example?
from efficient-ai-backbones.
Thanks @ppwwyyxx
from efficient-ai-backbones.
@ppwwyyxx TY
from efficient-ai-backbones.
Hi @iamhankai thanks for sharing this good work. I success training GhostNet 1.3x to 75.78/92.77 top1/top5
, it's almost your paper mentioned. Details here
But I use the same training setting with I train MobileNetV3
with some tricks Label smoothing, No decay bias and Dropout
.
I see your paper and reply in iamhankai/ghostnet.pytorch#18, it's seem that you don't use any tricks when training this. I've tried MobileNetV3
can't get such high accuracy leaving these tricks.
I wonder what tricks when training, if it's possible I remove these and get same result?
from efficient-ai-backbones.
from tensorpack import TowerContext
with TowerContext('', is_training=False):
model = GhostNet(....)
model.data_format = 'NHWC'
image_tensor = tf.placeholder(dtype=np.float32, shape=(7, 320, 320, 3), name='image_tensor')
logits = model.get_logits(image_tensor)
print(logits)
from efficient-ai-backbones.
Related Issues (20)
- vig训练自己的数据集 HOT 3
- SystemError: <built-in method run_backward of torch._C._EngineBase object at 0x7f66768528b0> returned NULL without setting an error
- PViG用于目标检测 HOT 2
- The train.py file does not support training the ViG model. How exactly should I initialize the ViG model? HOT 1
- [GhostNetV3] Question about Figure 3 HOT 1
- 'SNNMLP' object has no attribute 'module'
- I can‘t find the dataset.py in snn_mlp project
- GhostnetV3实现插值size不匹配 HOT 1
- 训练的loss不收敛 HOT 1
- Batch size in ViG-Ti HOT 1
- ghostnetv3中的rbr_conv和infer_mode找不到 HOT 1
- 关于预训练模型 pvig_s_82.1.pth.tar,是仅保存了权重吗? HOT 1
- ghostnetv3 重参数化
- ghostnet prune HOT 1
- ghostnetv3训练 HOT 2
- 在单卡GPU上训练出现的问题,无法解决 HOT 3
- ghostnetv3的预训练模型在哪里下载呢?求个下载链接
- ghost module替换卷积层 HOT 2
- Question about the paper “ParameterNet: Parameters Are All You Need” HOT 2
- Question for parameternet!! HOT 2
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 efficient-ai-backbones.