Traceback (most recent call last):


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/mayavi/plugins/script.py", line 99, in save_visualization

self.engine.save_visualization(fname)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/scripting/recordable.py", line 45, in _wrapper

result = func(*args, **kw)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/mayavi/core/engine.py", line 263, in save_visualization

state = state_pickler.get_state(self)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 982, in get_state

s = dumps(obj)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 954, in dumps

return StatePickler().dumps(value)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 292, in dumps

return pickle.dumps(self._do(value))


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 343, in _do

return self._do_instance(obj)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 395, in _do_instance

data = self._do(state)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 332, in _do

return self.type_map[obj_type](obj)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 442, in _do_dict

vals = [self._do(x) for x in list(value.values())]


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 442, in <listcomp>

vals = [self._do(x) for x in list(value.values())]


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 338, in _do

return self._do_list(obj)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 437, in _do_list

data = [self._do(x) for x in value]


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 437, in <listcomp>

data = [self._do(x) for x in value]


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 343, in _do

return self._do_instance(obj)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 395, in _do_instance

data = self._do(state)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 332, in _do

return self.type_map[obj_type](obj)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 442, in _do_dict

vals = [self._do(x) for x in list(value.values())]


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 442, in <listcomp>

vals = [self._do(x) for x in list(value.values())]


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 343, in _do

return self._do_instance(obj)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 395, in _do_instance

data = self._do(state)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 332, in _do

return self.type_map[obj_type](obj)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 442, in _do_dict

vals = [self._do(x) for x in list(value.values())]


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 442, in <listcomp>

vals = [self._do(x) for x in list(value.values())]


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 343, in _do

return self._do_instance(obj)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 395, in _do_instance

data = self._do(state)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 332, in _do

return self.type_map[obj_type](obj)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 442, in _do_dict

vals = [self._do(x) for x in list(value.values())]


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 442, in <listcomp>

vals = [self._do(x) for x in list(value.values())]


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 332, in _do

return self.type_map[obj_type](obj)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 442, in _do_dict

vals = [self._do(x) for x in list(value.values())]


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 442, in <listcomp>

vals = [self._do(x) for x in list(value.values())]


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 343, in _do

return self._do_instance(obj)


 "/opt/miniconda/envs/test/lib/python3.7/site-packages/apptools/persistence/state_pickler.py", line 382, in _do_instance

state = value.__get_pure_state__()
TypeError: 'NoneType' object is not callable

Traceback (most recent call last):


 "h5tool.py", line 708, in <module>

execute_cmdline(sys.argv)


 "h5tool.py", line 703, in execute_cmdline

func(**vars(args))


 "h5tool.py", line 609, in create_celeba_hq

aidx, aimg64, aimg128, aimg256, aimg512, aimg1024 = process_func(x)


 "h5tool.py", line 556, in process_func

img = np.pad(np.float32(img), ((pad[1], pad[3]), (pad[0], pad[2]), (0, 0)), 'reflect')
TypeError: float() argument must be a string or a number
