Resizing images with dynamic shape in tensorflow
问题 I want to resize 3D images with a dynamic shape, for instance go from shape (64,64,64,1) to (128,128,128,1). The idea is to unstack the image along one axis, then use tf.image.resize_images and stack them again. My issue is that tf.unstack can not handle variable sized inputs. If I run my code I obtain "ValueError: Cannot infer num from shape (?, ?, ?, 1)" I have considered using tf.split instead, however it expects an integer input. Does anybody know a workaround? Here is an example: import