Open houseofai opened 4 years ago
I download it ,but it shows fail to load checkpoint ,can you tell me the reason
You need to unzip the checkpoints.zip file to the checkpoint folder. It should look like this:
And get the latest version of my code, I added a fix. Tested and it works:
thanks for you reply,but it still has the same error. I tried many times ,but I can find it out
What version of Tensorflow do you have? It requires 1.15
Can you run this command:
cat UGATIT.py | grep UGATIT.model-2044000
and provide the result
What version of Tensorflow do you have? It requires 1.15
Can you run this command:
cat UGATIT.py | grep UGATIT.model-2044000
and provide the result
'1.15.0' vison
and run cat UGATIT.py | grep UGATIT.model-2044000` nothing happened
I really get confused about it
On line 603 of UGATIT.py, I added a fix to load the checkpoint. If you don't have any output with the cat UGATIT.py | grep UGATIT.model-2044000
it means that you didn't pull the latest changes from my repository.
thank you very much .finally ,I got it. But when I test it with other head portrait, it seems not well.Could you tell how to get the effect like baiduAI https://ai.baidu.com/tech/imageprocess/selfie_anime
thank you very much .finally ,I got it. But when I test it with other head portrait, it seems not well.Could you tell how to get the effect like baiduAI https://ai.baidu.com/tech/imageprocess/selfie_anime
Baidu effect is very surpriseing!
I can’t download the model completely, and it breaks every time I download it halfway, Can you provide other download methods?
I can’t download the model completely, and it breaks every time I download it halfway, Can you provide other download methods?
me too!
我只想分享一个检查点,该检查点是我在多达204个纪元的self2anime数据集上训练的。
我分叉的自述文件上的链接:https : [//github.com/OdysseeT/UGATIT](https://github.com/OdysseeT/UGATIT
i have done all jobs before running, when i run it as you say with default setting , it show error:
OutOfRangeError Traceback (most recent call last) /media/M_fMVMGMfM!M_#/lww/Py36/FaceStyle003/lib/python3.6/site-packages/tensorflow_core/python/client/session.py in _do_call(self, fn, args) 1364 try: -> 1365 return fn(args) 1366 except errors.OpError as e:
/media/M_fMVMGMfM!M_#/lww/Py36/FaceStyle003/lib/python3.6/site-packages/tensorflow_core/python/client/session.py in _run_fn(feed_dict, fetch_list, target_list, options, run_metadata) 1349 return self._call_tf_sessionrun(options, feed_dict, fetch_list, -> 1350 target_list, run_metadata) 1351
/media/M_fMVMGMfM!M_#/lww/Py36/FaceStyle003/lib/python3.6/site-packages/tensorflow_core/python/client/session.py in _call_tf_sessionrun(self, options, feed_dict, fetch_list, target_list, run_metadata) 1442 fetch_list, target_list, -> 1443 run_metadata) 1444
OutOfRangeError: 2 root error(s) found. (0) Out of range: Read less bytes than requested [[{{node save/RestoreV2}}]] (1) Out of range: Read less bytes than requested [[{{node save/RestoreV2}}]] [[save/RestoreV2/_301]] 0 successful operations. 0 derived errors ignored.
During handling of the above exception, another exception occurred:
OutOfRangeError Traceback (most recent call last)
在UGATIT.py的第603行,我添加了一个修复程序来加载检查点。如果没有任何输出,
cat UGATIT.py | grep UGATIT.model-2044000
则表示您没有从存储库中提取最新更改。
when i run it with default settings, i get it:
[] Reading checkpoints... 2020-11-05 17:56:31.540348: W tensorflow/core/framework/op_kernel.cc:1651] OP_REQUIRES failed at save_restore_v2_ops.cc:184 : Out of range: Read less bytes than requested Traceback (most recent call last): File "/media/M_fMVMGMfM!M_#/lww/Py36/FaceStyle003/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1365, in _do_call return fn(args) File "/media/M_fMVMGMfM!M_#/lww/Py36/FaceStyle003/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1350, in _run_fn target_list, run_metadata) File "/media/M_fMVMGMfM!M_#/lww/Py36/FaceStyle003/lib/python3.6/site-packages/tensorflow_core/python/client/session.py", line 1443, in _call_tf_sessionrun run_metadata) tensorflow.python.framework.errors_impl.OutOfRangeError: Read less bytes than requested [[{{node save/RestoreV2}}]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/media/M_fMVMGMfM!M_#/lww/Py36/FaceStyle003/UGATIT/demo.py", line 23, in
what happened ?
I just wanted to share a checkpoint that I have trained on the self2anime datasets up to 204 epochs.
Link on my forked README: https://github.com/OdysseeT/UGATIT