tensorflow-fcn | An Implementation of Fully Convolutional Networks | Machine Learning library
kandi X-RAY | tensorflow-fcn Summary
kandi X-RAY | tensorflow-fcn Summary
An Implementation of Fully Convolutional Networks in Tensorflow.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Build the convolution layer
- Upscore layer
- Create a bias variable
- Adds a weight to a variable
- Compute max pool
- Get a bias tensor
- Get layer weight reshaping
- Convolution layer
- Reshape the bias matrix
- Create summaries for a variable
- Get a convolution filter
- Summarize activations
- Get the decay filter
- Score layer
- Create a variable with weight decay
- Layer layer
- Reshape the average fweight
- Color an image
tensorflow-fcn Key Features
tensorflow-fcn Examples and Code Snippets
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.0.0rc0-cp27-none-linux_x86_64.whl
pip install --upgrade $TF_BINARY_URL
vgg = vgg16.Vgg16()
vgg.build(images, train=True, num_classes=num_classes, random_init_fc8=True)
Community Discussions
Trending Discussions on tensorflow-fcn
QUESTION
I'm working on an implementation of the FCN-32 net described in the Long, Shelhamer paper, but have run into a roadblock when upsampling. In order to upsample to original size, other implementations use a conv2d_transpose
layer with a bilinear filter w/kernel size 64x64. This works fine until you start using lots of classes.
For any number of classes > ~375, the filters
variable in the transpose layer is > 2 gb ( 64 x 64 x (>375) x (>375) ) so Tensorflow complains and dies, saying
ValueError: Cannot create a tensor proto whose content is larger than 2GB.
Is there any way to avoid this size limit? My first thought would be generative tensor, but I can't find any documentation on how to create if such a construct exists or is possible.
...ANSWER
Answered 2018-Apr-11 at 21:11You can split the output classes into multiple operations and concatenate them at the end.
Backprop will work just fine through the concat operation. It should be as trivial as creating two conv2d_transpose
operations, each with half the classes and concat the results appropriately and continue to the loss function from there.
Creating more than 2 conv2d_transpose
operations as necessary will work just as well.
After thinking about this I'm confident it will work. If there's an issue let me know and I'll update the answer.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tensorflow-fcn
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page