Skip to content

Comments

add model codes about PSMNet#52

Open
passion3394 wants to merge 1 commit intoCVLAB-Unibo:masterfrom
passion3394:dev
Open

add model codes about PSMNet#52
passion3394 wants to merge 1 commit intoCVLAB-Unibo:masterfrom
passion3394:dev

Conversation

@passion3394
Copy link

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

@@ -0,0 +1,304 @@
import tensorflow as tf
import tensorflow.keras as keras
from .utils import *
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are you trying to import here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 3 should be deleted.

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], \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants