Comments (17)
#11 (comment) should be corrected.
line 903 in utils/general.py
prediction = prediction[0][1] # select only inference output, [0][0] for aux prediction, [0][1] for main prediction.
from yolov9.
So, the correct one is as follows, right?
line 903 in utils/general.py
prediction = prediction[0][1]
from yolov9.
Following this discussion, I opened a PR with a (probably temporal) fix. It makes detect.py
work with both yolov9
and gelan
models.
from yolov9.
line 903 in utils/general.py
prediction = prediction[0][0] # select only inference output
from yolov9.
@Dragos-Stan provides a temporal solution.
To inference yolov9 models, we need follow val_dual.py
to construct detect_dual.py
. Or do re-parameterization for yolov9 models, then using detect.py
.
Currently, re-parametwrization part is under construction.
from yolov9.
So, the correct one is as follows, right?
line 903 in utils/general.py prediction = prediction[0][1]
I followed yr ways, it worked with yolov9-c and yolov9-e.
But:
line 903 in utils/general.py
prediction = prediction[0]
worked with gelan-c.pt and gelan-e.pt.
from yolov9.
Got same error in detect.py
from yolov9.
It works!
from yolov9.
I am getting the same error and fixed the general.py file as here discussions main...noorkhokhar99:yolov9:patch-1
from yolov9.
@SkalskiP Your fix is working for me for a yolov9-c model. Haven't tested ELAN.
Is this a better fix than @Dragos-Stan 's given it works for either architecture?
#11 (comment) should be corrected.
line 903 in utils/general.py prediction = prediction[0][1] # select only inference output, [0][0] for aux prediction, [0][1] for main prediction.
from yolov9.
Hi @mkrupczak3 👋🏻 My fix should work with both GELAN and YOLOv9 architectures. Take a look here. I use it to run both models.
from yolov9.
@SkalskiP I found your fix applies to detect.py
but does not fix val.py
. Fixing utils/general.py
according to WongKinYiu's comment fixes both however. I'm using that now
from yolov9.
@mkrupczak3 what's wrong with validation? I've done it yesterday and it works for me.
from yolov9.
Altering just detect.py
does not fix val.py
for dual models such as yolov9-c. Modifying utils/general.py
as described does fix val.py
however,
from yolov9.
line 903 in utils/general.py prediction = prediction[0][0] # select only inference output
thanks
from yolov9.
line 903 in utils/general.py prediction = prediction[0][0] # select only inference output
thanks
from yolov9.
Following this discussion, I opened a PR with a (probably temporal) fix. It makes work with both and models.
detect.py``yolov9``gelan
thanks,its work
from yolov9.
Related Issues (20)
- poor box width regression on text detection HOT 3
- TRTExec Results HOT 1
- I don't see a value for the first column for targets in dataloader.py
- difference between detect and ddetect HOT 5
- how to use nms when i use export.py to export onnx HOT 1
- ’IndexError: list index out of range’ when running val.py with yolov9-c-converted.pt
- Using converted custom train_dual weight makes an error.
- Training with multiple datasets? HOT 1
- Segmentation detect error: c, mh, mw = protos.shape # CHW AttributeError: 'list' object has no attribute 'shape'
- Segmentation detect error: c, mh, mw = protos.shape # CHW AttributeError: 'list' object has no attribute 'shape' HOT 1
- AttributeError: 'list' object has no attribute 'shape' 。segment/predict.py HOT 1
- Error making predictions after training gelan-c-seg HOT 1
- half valid precision
- half valid precision
- Error when training: RuntimeError: Caught RuntimeError in pin memory thread for device 0 HOT 2
- resume option for `--evolve` HOT 1
- Getting Assertion Error while using panoptic segmentation
- Weights used for yolov9.yaml cfg
- [Useful Link] Deploy YOLOv9 on Qualcomm NPU-HTP
- Error while loading custom trained model HOT 4
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 yolov9.