Porting to TF2
1 unresolved thread
1 unresolved thread
Fixes #75 (closed)
Edited by Amir MOHAMMADI
Merge request reports
Activity
changed milestone to %Bob 9.0.0
We can't have tensorflow-gpu 2.2 and Bob 8 in the same env
pkgs/main/linux-64 Using cache pkgs/main/noarch Using cache pkgs/r/linux-64 Using cache pkgs/r/noarch Using cache software/bob/conda/linux [====================] (00m:00s) No change software/bob/conda/noarc [====================] (00m:00s) No change software/bob/conda/noarc [====================] (00m:00s) No change software/bob/conda/linux [====================] (00m:00s) No change Looking for: ['tensorflow-gpu==2.2.0'] Encountered problems while solving. Problem: nothing provides boost 1.61.* needed by bob.io.base-2.0.12-py27_0
Edited by Tiago de Freitas Pereira246 ) 247 return model 248 249 250 class CustomBackupAndRestore(tf.keras.callbacks.experimental.BackupAndRestore): 251 def __inti__(self, custom_objects, **kwargs): 252 super().__inti__(**kwargs) 253 self.custom_objects = custom_objects 254 self.custom_objects_path = os.path.join(self.backup_dir, "custom_objects.pkl") 255 256 def on_epoch_end(self, epoch, logs=None): 257 super().on_epoch_end(epoch, logs=logs) 258 259 # pickle custom objects 260 with open(self.custom_objects_path, "wb") as f: 261 pickle.dump(self.custom_objects, f) We should keep an eye on this.
https://github.com/tensorflow/tensorflow/pull/36635
Then we can use this code as-is :-)
This issue https://github.com/keras-team/keras/issues/9462 talks about that.
changed this line in version 4 of the diff
added 1 commit
- 400c5d99 - Add a callback that backups and restores other callbacks
assigned to @amohammadi
added 26 commits
-
400c5d99...3a6a2531 - 2 commits from branch
master
- c75e4792 - remove docopt from dependencies
- 2b86a999 - remove the network folder
- 8b241e4d - remove the estimators folder
- a28815cd - remove the examples folder
- 1e21e10c - remove the extractors folder
- 60945e02 - remove the layers folder
- cbdc2d10 - remove style transfer
- a836dbe5 - Remove tests of removed components
- bdcb031a - remove slim references
- f8449547 - remove hooks
- 573b8230 - Ran the automated conversion script
- 85c6b71d - nosetests are passing
- 9f2c4abf - blacken code
- ea72b276 - isort -sl -rc .
- ccf1dea7 - remove gan folder
- a48bce10 - remove bob.bio.base
- 23e4c7c2 - remove more scripts
- 5718c4e0 - rename loss to losses and update center loss
- f02aaff2 - make sure all architectures output logits
- 9b054f27 - reorganized files and many changes
- 4ff7b4e1 - Add docs and examples
- 3ea8cb22 - Tests with independence
- 58427600 - Cleaning up some dependencies
- 9e3b0c00 - Add a callback that backups and restores other callbacks
Toggle commit list-
400c5d99...3a6a2531 - 2 commits from branch
mentioned in commit c2b538b0
mentioned in issue #77 (closed)
Please register or sign in to reply