Comments (7)
If used CUDA_VISIBLE_DEVICES to assign just a single GPU, comment
net = torch.nn.DataParallel(ssd_net)
It works for me.
from ssd.pytorch.
Try using
os.environ['CUDA_LAUNCH_BLOCKING'] = 1
as :
Sometimes the error message can be caught at a different place compared to where it is occuring because of the asynchronous nature of CUDA (pasted from there)
from ssd.pytorch.
@JoachimHugonot Okay! I will use this in future runs. Though this error is quite arbitrary.
from ssd.pytorch.
@chauhan-utk x
Could you try to scale the loss in :
Line 184 in ce4c994
like this :
loss = (loss_l + loss_c)/1000.0
and report back the results ?
For me it solved the crashes, but I still need to run more tests to be sure.
from ssd.pytorch.
Hi! What is your slight modification? I have trained the model recently using batch size 32 through 120k iterations without any issues, so I cannot comment without knowledge of the change you made.
from ssd.pytorch.
I had changed the line 88 in multibox_loss.py
to include a custom loss function. So far my observation have been that loc_p
contains the best single prediction for the corresponding ground truth loc_t
and so we can use something other than smooth L1 loss. The resultant saved in loss_t is a single dimension tensor just as it would by using the existing loss function. Rest everything was same.
Since this is not a particular issue with the existing code and the above methods have been somewhat effective, I am closing this issue.
from ssd.pytorch.
I had similar issues. Any thoughts?
from ssd.pytorch.
Related Issues (20)
- what does target actually look like in criterion(out, target)? HOT 3
- Result produced too many boxes HOT 1
- About training only VOC2007 HOT 1
- eval my voc dataset ' __init__() missing 5 required positional arguments' HOT 4
- RuntimeError: Error(s) in loading state_dict for SSD:
- How can I get precision and recall in eval.py
- setting an array element with a sequence. HOT 4
- np.random.choice doesn't support tuple (or something like that) anymore
- the result in onnx model is all zero.
- ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (6,) + inhomogeneous part. HOT 4
- Do you calculate mAP in the right way ?
- ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (6,) + inhomogeneous part. HOT 5
- sh code error report
- Follow this to get this ancient code works HOT 1
- ValueError: operands could not be broadcast together with shapes HOT 1
- What environment is the best to run test.py?
- Packages versions
- RuntimeError: index 1 is out of bounds for dimension 1 with size 1
- TypeError: forward() missing 1 required positional argument: 'x' HOT 5
- Extract loss for each image in the batch
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 ssd.pytorch.