Open
Conversation
| @@ -0,0 +1,304 @@ | |||
| import tensorflow as tf | |||
| import tensorflow.keras as keras | |||
| from .utils import * | |||
Member
There was a problem hiding this comment.
What are you trying to import here?
| with tf.compat.v1.variable_scope('conv0',reuse=reuse): | ||
| if reuse == tf.compat.v1.AUTO_REUSE: | ||
| tf.print(bottom, ['left_batch_size:',bottom]) | ||
| self._add_to_layers('CNN/conv0/conv0_1', sharedLayers.conv2d(bottom, [3, 3, 3, 32], \ |
Member
There was a problem hiding this comment.
you can set the shape of the filter to [3, 3, input_batch.get_shape()[-1].value, 32] to handle inputs with a number of channels different from 3
Author
There was a problem hiding this comment.
line 70 has been changed to the following:
self._add_to_layers('CNN/conv0/conv0_1', sharedLayers.conv2d(bottom, [3, 3, bottom.get_shape()[-1].value, 32],
activation=tf.nn.leaky_relu, batch_norm=True, apply_relu=True,strides=2, name='conv0_1',reuse=reuse))
The same error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I try to train on scene_flow dataset. the train script is the following:
CUDA_VISIBLE_DEVICES=4 python Train.py --trainingSet=/host/nfs/hs/scene_flow/train.list --validationSet=/host/nfs/hs/scene_flow/val.list --output=_output_PSMNet --modelName=PSMNet --imageShape 256 512 --batchSize=1 --numEpochs=10