Comments (4)
Is this for chapter 6: Single-Object Segmentation?
I cannot recall the "out of memory message" for Chapter 6 since the model and data are pretty light.
At what stage did you get the error?
from pytorch-computer-vision-cookbook.
Yes 6th chapter. While training as i have 6GB CUDA goes out of memory after 26 epochs, then i used kaggle kernel they have 15GB and CUDA went out of memory after 72 epochs.
from pytorch-computer-vision-cookbook.
My guess is that the error is due these two lines
pred= torch.sigmoid(output)
_, metric_b=dice_loss(pred, target)
inside loss_batch
helper function. They calculate the dice metric during training.
Can you try one of these two options:
- comment out the two lines and return a fixed number for
metric_b
for now to see if that is causing the error - put the two lines under
with torch.no_grad():
to avoid tracking gradients when calculating the metric.
from pytorch-computer-vision-cookbook.
Thank you,
i used "with torch.no_grad():" and it works perfectly.
Thank you very much.
from pytorch-computer-vision-cookbook.
Related Issues (20)
- Bounding box too small contrary to shown in book HOT 2
- Pirated copy of your book? HOT 3
- chapter2 I have a KeyError: '_labels' HOT 1
- Training yolo model with different image size HOT 2
- Page 174, When i run get_coco_dataset.sh, get_coco_dataset.sh: 29: get_coco_dataset.sh: Syntax error: "(" unexpected HOT 3
- Chapter5 error HOT 2
- Chapter 10 HOT 1
- Chapter 10 Resnt18RNN model accuracy is 0. HOT 2
- Chapter 5 get_yolo_targets
- AMD Grand challenge download forbidden HOT 3
- Chapter6-deployment Error
- NotaDirectoryError
- Error when running the module below
- lacking data HOT 3
- Chapter 5 training code question/error ? HOT 1
- Chapter 5 method xyxyh2xywh HOT 3
- Non max suppression run time issue (Chapter 05) HOT 7
- Chapter 10 Error ( Accuracy is always 18.18% i.e constant) HOT 1
- Chapter 10 Error ( Accuracy is always 0% i.e constant) 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 pytorch-computer-vision-cookbook.