Comments (5)
We use volatile=True to use less memory at test time as no gradient has to be computed. The message you get is just a warning so it should work anyway. I recommend you to use the latest release (0.3.1) so you don't have to worry about changes in the API done in the version that you use now.
from osvos-pytorch.
I'm not sure if I fix it correctly:
https://github.com/kmaninis/OSVOS-PyTorch/blob/master/layers/osvos_layers.py#L55
return F.pad(x, [
crop_w.ceil().int()[0], crop_w.floor().int()[0],
crop_h.ceil().int()[0], crop_h.floor().int()[0],
])
to
return F.pad(x, (int(crop_w.ceil()[0]), int(crop_w.floor()[0]), int(crop_h.ceil()[0]), int(crop_h.floor()[0])))
from osvos-pytorch.
Hello mrteera,
The fix that you have applied looks good to me. We have only tested our code in stable released versions of Pytorch (0.2, 0.3, 0.3.1) and we haven't encountered that error previously so I guess they have change the behavior of the pad function. If the code works after your fix, please close the issue.
Best
from osvos-pytorch.
I have another error. I'm not sure if it comes from my fix or not.
[Epoch: 10000, numImages: 1]
Loss: 1109.525879
Online training time: 1661.821477145073
Testing Network
train_online.py:182: UserWarning: volatile was removed and now has no effect. Use `with torch.no_grad():` instead.
inputs, gts = Variable(img, volatile=True), Variable(gt, volatile=True)
from osvos-pytorch.
Hi, once PyTorch 0.4 is stable and released, we will make all our code compatible to that. I hope this helps.
from osvos-pytorch.
Related Issues (20)
- Code HOT 1
- class_balanced_cross_entropy_loss HOT 1
- Confused by " inputs.requires_grad_()" HOT 3
- online training HOT 1
- Implement three measures HOT 3
- Why total iterations are different to them in the paper? HOT 1
- official measure code HOT 7
- How to add Mask Input? HOT 1
- Can you deliver a pretrain .pth model file of the final model HOT 1
- loss islarge HOT 3
- i can't find where you use finetuning on first frame in your code-pytorch HOT 5
- can you help me, how to use this code on Davis 2017 HOT 2
- train_online RuntimeError HOT 1
- The code of contour snap HOT 1
- Optimizer learning rates HOT 1
- Question about evaluation result HOT 1
- an error occurred when running train_parent.py HOT 6
- How to Evaluate the model? HOT 1
- Can it be used in images? HOT 1
- Emergency!
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 osvos-pytorch.