Comments (3)
Hi Jenny,
Please note that the forward method of the Os2dModel class requires more than one argument:
Lines 235 to 258 in 96c488b
My guess is that you need to provide class_images as the error message says. It should be a list of tensors containing images of classes-to-detect.
Best,
Anton
from os2d.
Hi Anton
For training mode, I understand, I need to specify the classes but what about inference mode? As I am interested in inference mode, not training.
from os2d.
I think you can still pass images, class_images and train_mode=False into this function at it should work. This way the features from the class images will be extracted at the same call. Alternatively you can precompute these class features and pass the class_head as done here:
Lines 268 to 269 in 96c488b
from os2d.
Related Issues (20)
- How to visualize the test results? HOT 1
- Number of iterations HOT 1
- How to train the same model for custom data HOT 1
- Reproducing the model results on the paste-f dataset shown in the research paper HOT 6
- Annotation of Grozi3.2K HOT 1
- how about using the Efficient Neighbourhood Consensus Networks? HOT 3
- Questions about the V2 model approach HOT 1
- Some ideas about training with typical object detection datasets. HOT 1
- Where to get the trained model on Instre and imageNet? HOT 7
- Same class images with different class_ids get different results? HOT 1
- Attributes of grozi.csv HOT 3
- Error on using multi GPU setting HOT 2
- What is 3264 in the src? HOT 2
- Cannot find 'net' in the checkpoint file HOT 2
- Need for OrderedDict HOT 2
- CUDA out of memory HOT 4
- Security alert from dependabot HOT 3
- Multi-GPU training for detector HOT 6
- Segmentation fault HOT 4
- Error in visualisation HOT 1
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 os2d.