Closed Francis777 closed 4 years ago
Another bug fix is to add
from tensorflow.contrib import framework as contrib_framework
in predictors/checkpoint_predictor.py
. Otherwise contrib_framework
is undefined in the constructor. I'd be happy to open a PR for these two fixes.
Hi Francis, thanks for bringing this issue to my attention. A fix is incoming for the first issue you mentioned. As for the second, since TF latest has removed contrib, you now need to install it as a separate dependency (I may have neglected to put it in the pip requirements.txt)
Thanks for your quick response Eric, I'm looking forward to the update. Besides I also include the following dependencies in requirements.txt
to make everything work:
tf-agents==0.3.0
gast==0.2.2
Feel free to close the issue!
https://github.com/google-research/tensor2robot/commit/416f283b9461d2f9bf10f4f0c17af294f1f48da8 fixes the issue. I'll update the requirements.txt soon.
Hi t2r team,
Thanks for open sourcing this project. Here is one bug I observe: 3 tests in
PoseEnvModelsTest
failed (test_regression_maml_policy_interface
,test_train_eval_gin('run_train_reg.gin')
,test_train_eval_gin('run_train_reg_maml.gin')
) with the following same error:class
PoseEnvRegressionModel
(inresearch/pose_env/pose_env_models.py
) inherits from classRegressionModel
(inmodels/regression_model.py
). In the superclass it raises error if output ofa_func
doesn't contain key inference_output. But in the subclass the implementation ofa_func
returns the actual inference output with key action.a_func
of classPoseEnvRegressionModel
as follows:After this change the tests passed. Note that simply changing
action
toinference output
will still cause test failure with different errors, I currently haven't looked into the cause yet, would appreciate insight on that as well!p.s. my tf version: 1.14.0