Skip to content

NoneType in downsample #59

@Freephi

Description

@Freephi

Hi,
I get following error:

Traceback (most recent call last):
  File "eval_gui.py", line 338, in <module>
    tf.app.run()
  File "/home/teamCV/venv/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 126, in run
    _sys.exit(main(argv))
  File "eval_gui.py", line 328, in main
    result, image_names = _evaluate_experiment(name, input_fn, data_input)
  File "eval_gui.py", line 131, in _evaluate_experiment
    params=params, augment=False, return_flow=True)
  File "/home/teamCV/UnFlow/src/e2eflow/core/unsupervised.py", line 101, in unsupervised_loss
    mask_s = downsample(border_mask, 4)
  File "/home/teamCV/UnFlow/src/e2eflow/core/util.py", line 23, in downsample
    if height%2 == 0 and width%2 == 0:
TypeError: unsupported operand type(s) for %: 'NoneType' and 'int'

While running run.py as well as eval_gui.py. I tried all different datasets, tried to train all possible models, and tried it with the pre-trained models provided from you.
I'm using a Ubuntu 18.04 machine with python 3.5.6/3.6.7 and cuda-9.0. I tried cudnn7.1 and cudnn7.0, tensorflow-gpu 1.12 and 1.7 (installed with pip inside a virtualenv).

The input tensor of the core/util/downsampler method seems to be 'None', but I don't know why.
Do you have any idea why or what could cause this error message?

Any help is appreciated!
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions