Comments (8)
The bug comes from 270 line in model.py
return [torch.zeros(0), torch.zeros(0), torch.zeros(0, 4)]
Because it does not return the value in GPU device. Change this line like this:
return [torch.zeros([1]).cuda(0), torch.zeros([1]).cuda(0), torch.zeros([1, 4]).cuda(0)]
Do not forget to change torch.zeros(0)
to torch.zeros([1])
, otherwise there will be another bug about array bound
from pytorch-retinanet.
I got this error too
from pytorch-retinanet.
emmmmm , I got the same error
from pytorch-retinanet.
My solution is moving this mAP = csv_eval.evaluate(dataset_val, retinanet)
out of for iter_num, data in enumerate(dataloader_train):
because calculating mAP should be done after one epoch.
from pytorch-retinanet.
@Kwongrf the train.py already has that line of code out of the for loop.. I am still getting the same error.. Any idea on what else is wrong?
from pytorch-retinanet.
@mahaling Have you modified other parts of train.py... In my case, I tried to change train.py to train on my own data but I made a mistake that I moved that line in the for loop. So it just trained one batch and then it started to evaluate. It seems like yours can train one entire epoch and then get the assertionerror. Maybe you can print the inputs in .../torch/nn/parallel/_functions.py
.
from pytorch-retinanet.
For now I turned off csv_eval, so that I get the data trained for 100 epochs.
from pytorch-retinanet.
I get the assertion error again after I have trained for 4 epochs...It seems like there are some faults in csv_eval.py
from pytorch-retinanet.
Related Issues (20)
- Loss curve
- How to specify GPU card number for training
- mAP Problem/question
- Question about NMS step in inference phase? HOT 1
- Question about input size HOT 1
- Possible discrepancy in FocalLoss calculation HOT 2
- Yolo format HOT 1
- multi-GPU training
- evaluate question
- Training Issue HOT 3
- Is batch testing possible? HOT 1
- Save module every time?
- Failure to switch to ONNX HOT 1
- IndexError: index -1 is out of bounds for axis 0 with size 0 HOT 3
- Early Stopping
- Alternative dataset
- i can't find the CSVGenerator,could you please tell me where is it? thank you
- Why is AP so low?(No changes were made. )
- Can we enhance retinanet model??
- Is there any training logs?
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-retinanet.