Comments (10)
me too
from spatial-transformer-network.
me too, and all of the images in samples are empty
from spatial-transformer-network.
Hey guys, I'll take a look at the code when I get the time.
from spatial-transformer-network.
I have the same issue. Looks like it is related to the initialization of the conv and fc layers. I tried only using fc layers for regression and the training converged. Remember to initialize the weight to zeros and bias to identity.
Haven't figured out how to initialize conv layers yet. If anyone make progress on this please let us know.
from spatial-transformer-network.
i think that the bilinear interpolation process in funtion bilinear_sampler is wrong, and a good example of this process can be found in https://github.com/tensorflow/models/tree/master/research/transformer
` # get pixel value at corner coords
Ia = get_pixel_value(img, x0, y0)
Ib = get_pixel_value(img, x0, y1)
Ic = get_pixel_value(img, x1, y0)
Id = get_pixel_value(img, x1, y1)
# recast as float for delta calculation
x0 = tf.cast(x0, 'float32')
x1 = tf.cast(x1, 'float32')
y0 = tf.cast(y0, 'float32')
y1 = tf.cast(y1, 'float32')
# calculate deltas
wa = (x1-x) * (y1-y)
wb = (x1-x) * (y-y0)
wc = (x-x0) * (y1-y)
wd = (x-x0) * (y-y0)
# add dimension for addition
wa = tf.expand_dims(wa, axis=3)
wb = tf.expand_dims(wb, axis=3)
wc = tf.expand_dims(wc, axis=3)
wd = tf.expand_dims(wd, axis=3)
# compute output
out = tf.add_n([wa*Ia, wb*Ib, wc*Ic, wd*Id])`
from spatial-transformer-network.
me too
from spatial-transformer-network.
how to start the training?
from spatial-transformer-network.
如何开始培训?
Excuse me,do you know how to train now?
from spatial-transformer-network.
Excuse me, I would like to know how to start training the model?thank you!
from spatial-transformer-network.
I think the problem is the gradients of bilinear sampling can not be auto-generated by tensorflow properly. In the original paper, author defined special gradients during this process, and this package has not included it for now.
from spatial-transformer-network.
Related Issues (20)
- A question HOT 1
- Bug in bilinear sampler of transformer HOT 13
- A Running Error Using Tensorflow 1.8.0 HOT 1
- Question about Affine matrix structure HOT 5
- Cliping issue HOT 2
- How should I use this for different "batch_size"
- Regarding get_pixel_value in STN method HOT 3
- STN implementation in tensorflow HOT 5
- Something wrong with get_pixel_value? HOT 1
- How to train a model? HOT 2
- How to use STN when the batch size of train set and test set is different?
- location
- How can it do backpropogation? HOT 1
- How to achieve interpolation?
- About Theta Problem HOT 1
- 3d generalization HOT 2
- STN for only Attention Mechanism (Isotropic Scaling)
- Thete
- Padding mode support?
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 spatial-transformer-network.