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

train_auto_encoder_1.py issue #4

Open
Mu-Magdy opened this issue Feb 2, 2022 · 0 comments
Open

train_auto_encoder_1.py issue #4

Mu-Magdy opened this issue Feb 2, 2022 · 0 comments

Comments

@Mu-Magdy
Copy link

Mu-Magdy commented Feb 2, 2022

File "Code\core\train_auto_encoder_1.py", line 178, in
train()
File "Code\core\train_auto_encoder_1.py", line 153, in train
utility.freeze_model(sess,logs_path,tf.train.latest_checkpoint(logs_path),cae,"encoder_train.pb",cs.ENCODER1_FREEZED_PB_NAME)
File "Code\utils\utility.py", line 35, in freeze_model
freeze_graph.freeze_graph(input_graph_path,
File "AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\tools\freeze_graph.py", line 346, in freeze_graph
return freeze_graph_with_def_protos(
File "AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\tools\freeze_graph.py", line 189, in freeze_graph_with_def_protos
saver = saver_lib.Saver(
File "AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\training\saver.py", line 836, in init
self.build()
File "AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\training\saver.py", line 848, in build
self._build(self._filename, build_save=True, build_restore=True)
File "AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\training\saver.py", line 876, in _build
self.saver_def = self._builder._build_internal( # pylint: disable=protected-access
File "AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\training\saver.py", line 489, in _build_internal
saveables = saveable_object_util.validate_and_slice_inputs(
File "AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\training\saving\saveable_object_util.py", line 362, in validate_and_slice_inputs
for converted_saveable_object in saveable_objects_for_op(op, name):
File "AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\training\saving\saveable_object_util.py", line 223, in saveable_objects_for_op
yield ResourceVariableSaveable(variable, "", name)
File "AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow\python\training\saving\saveable_object_util.py", line 95, in init
self.handle_op = var.op.inputs[0]
IndexError: tuple index out of range

getting this error after running train_auto_encoder_1.py
and after updating every tensorflow v1 to v2
any ideas?

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

1 participant