Comments (7)
My current workaround solution is to use multiple images in a batch. However, it might be better to figure out how to solve the single image issue.
In addition, the model produces a softmax output with 10 element for a single image, because I am using the AVA model. How can we compute a single score for an image? Thank you.
from tanet.
- I have never encountered such a problem before ,you may refine the function of "validate(opt, model=model, loader=dataloader_test……" when bs=1,to see if you can solve this problem,see issue 8.
- use the function of "def get_score(opt, y_pred)" in my code to obtain a score.
from tanet.
I have never encountered such a problem before ,you may refine the function of "validate(opt, model=model, loader=dataloader_test……" when bs=1,to see if you can solve this problem,see issue 8.
- use the function of "def get_score(opt, y_pred)" in my code to obtain a score.
I got it, thanks a lot.
from tanet.
@junyongyou hi could you solve this issue without using the dataloader? For now I am doing
bn7 = nn.BatchNorm1d(q.shape[0])
bn7.eval()
because it seems that the problem is that the BatchNorm1d is in training mode, although we set the whole model to eval. I am sure there is nicer solution. I guess the BatchNorm should be created when creating the TargetNet and then the forward pass just calls it.
from tanet.
@woshidandan Ok my solution doesn't work because it throws some wrong predictions. I would need the single image inference without dataloader for converting the model to onnx. Any ideas?
from tanet.
There are some sub-models that are not in eval mode even the whole model is set to eval. Thus, I don't know how to solve the problem.
from tanet.
@junyongyou 关于single image inference,想问下你这边解决了吗?
from tanet.
Related Issues (20)
- 【请求】数据集上传到平台 HOT 1
- 不同batch size时inference结果不同 HOT 1
- 关于nni训练 HOT 1
- Is it possible to share the trained weights? Thanks HOT 3
- Hyperparameters to replicate the paper's results HOT 6
- python的版本 HOT 1
- How to get a pretrained backbone? HOT 2
- Which hyperparameter should be set by individually HOT 5
- 关于nni训练nni.report_intermediate_result在trial中只输出一次信息的问题 HOT 1
- Some questions about reproducibility
- Inference for images? HOT 1
- 载入预训练好的权重的推理结果 HOT 1
- 请问文中提出的包含AVA, FLICKR- AES和TAD66的测试集可以提供吗? HOT 1
- 请问我该如何产生您展示的视频demo
- Results interpretation
- Apply for supplementary material
- 您好,抱歉打扰您,请问我该怎么做才能对单张图像测试,相关代码可以提供吗?万分感谢
- LCC and SRCC values got smaller and smaller as the number of training epoch increased.
- The inference effect is very poor
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 tanet.