Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run train_synthesis.py #17

Open
Salamander321 opened this issue Sep 19, 2020 · 1 comment
Open

Unable to run train_synthesis.py #17

Salamander321 opened this issue Sep 19, 2020 · 1 comment

Comments

@Salamander321
Copy link

In provider.py at line 111

data.transform.MinMaxNormalization(tf.uint16.max),
There should be this

data.transform.MinMaxNormalization(),

In paper you have mentioned that you are able to perform one iteration of auto-context model so i was trying to first run one iteration first. But while implementing i got following errors

tensorflow.python.framework.errors_impl.InvalidArgumentError: 2 root error(s) found.
  (0) Invalid argument: Paddings must be non-negative: -86 -86
	 [[{{node compose/center_pad_3d/Pad}}]]
	 [[patch/IteratorGetNext]]
	 [[patch/IteratorGetNext/_1755]]
  (1) Invalid argument: Paddings must be non-negative: -86 -86
	 [[{{node compose/center_pad_3d/Pad}}]]
	 [[patch/IteratorGetNext]]
0 successful operations.
0 derived errors ignored.

shape passed to center_pad_3d transformation function is Volume_shape : [260, 340, 360, 1]

Is preprocessing mechanism for contex-aware is different than that of unet,pixtopix one ?

@bodokaiser
Copy link
Owner

data.transform.MinMaxNormalization(tf.uint16.max),
There should be this
data.transform.MinMaxNormalization(),

Why?

Is preprocessing mechanism for contex-aware is different than that of unet,pixtopix one ?

Yes, it is very different. For the context-aware network you need 3d patches while the other ones use 2d slices. I was never able to achieve good results with the context-aware network. The original paper is (in my opinion) not very specific on the implementation details and you have to write a lot of custom code for your training procedure.

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

No branches or pull requests

2 participants