taki0112 / UGATIT

Official Tensorflow implementation of U-GAT-IT: Unsupervised Generative Attentional Networks with Adaptive Layer-Instance Normalization for Image-to-Image Translation (ICLR 2020)
MIT License
6.17k stars 1.05k forks source link

Problems with the selfie2anime zip files #87

Open allo- opened 4 years ago

allo- commented 4 years ago

I get using the standard unzip program this error message:

$ unzip ../50_epoch_selfie2anime_checkpoint.zip 
Archive:  ../50_epoch_selfie2anime_checkpoint.zip
warning [../50_epoch_selfie2anime_checkpoint.zip]:  4294967296 extra bytes at beginning or within zipfile
  (attempting to process anyway)
file #1:  bad zipfile offset (local header sig):  4294967296
  (attempting to re-compensate)
   creating: checkpoint/
error: invalid zip file with overlapped components (possible zip bomb)

$ unzip ../100_epoch_selfie2anime_checkpoint.zip 
Archive:  ../100_epoch_selfie2anime_checkpoint.zip
warning [../100_epoch_selfie2anime_checkpoint.zip]:  4294967296 extra bytes at beginning or within zipfile
  (attempting to process anyway)
file #1:  bad zipfile offset (local header sig):  4294967296
  (attempting to re-compensate)
   creating: checkpoint/
error: invalid zip file with overlapped components (possible zip bomb)

and only an empty folder checkpoint is created.

tankfly2014 commented 4 years ago

try mac unzip software . Don't use pc .

allo- commented 4 years ago

I do not have a Mac. Do you know any compatible PC program? Maybe you can provide a zip (tar, rar, etc.) with a format that works with common archive software, as other people may have the same program, when it can really only be extracted on Macs.

beyonehan commented 3 years ago

截屏2020-07-28 上午11 44 58 try this to do it

allo- commented 3 years ago

I tried the Linux command line version of The Unarchiver and got:

../100_epoch_selfie2anime_checkpoint.zip: Zip
  checkpoint/  (dir)... OK.
Archive parsing failed! (Unknown error.)
Successfully extracted to "./checkpoint".

only the folder "checkpoint" was created with no files in it.

Can't you just archive it on your mac in another format? I guess tar or rar will be just fine, it's probably only zip that for some reason uses mac specific features.

zerollzeng commented 3 years ago

I tried the Linux command line version of The Unarchiver and got:

../100_epoch_selfie2anime_checkpoint.zip: Zip
  checkpoint/  (dir)... OK.
Archive parsing failed! (Unknown error.)
Successfully extracted to "./checkpoint".

only the folder "checkpoint" was created with no files in it.

Can't you just archive it on your mac in another format? I guess tar or rar will be just fine, it's probably only zip that for some reason uses mac specific features.

I have this problem too, the checkpoint extract by unzip is corrupt

allo- commented 3 years ago

I could extract the checkpoint 204 from the fork of this project: https://github.com/OdysseeT/UGATIT

I did not have the time to test it yet, though.

92 also reports some problems with it, but they are probably unrelated to the checkpoint itself.

zerollzeng commented 3 years ago

can you test it when you have times? I train a light version model but the performance is really bad since I can't train the standard model on 2080ti due to lack of gpu memory :(

beyonehan commented 3 years ago

i have the same problem too

------------------ 原始邮件 ------------------ 发件人: "Ren Zeng"<notifications@github.com>; 发送时间: 2020年8月3日(星期一) 下午5:11 收件人: "taki0112/UGATIT"<UGATIT@noreply.github.com>; 抄送: "清泉石上流"<549983384@qq.com>; "Comment"<comment@noreply.github.com>; 主题: Re: [taki0112/UGATIT] Problems with the selfie2anime zip files (#87)

can you test it when you have times? I train a light version model but the performance is really bad since I can't train the standard model on 2080ti due to lack of gpu memory :(

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

zerollzeng commented 3 years ago

For anyonw who meet this problem in linux, I've try unzip and 7-zip and none of them works, but finally I extract the zip file with fastjar(and jar should works, too) you may refet to this link

funatsufumiya commented 2 years ago

I tried zip -FF 100_epoch_selfie2anime_checkpoint.zip --out 100_epoch_selfie2anime_checkpoint_fixed.zip && 7z x 100_epoch_selfie2anime_checkpoint_fixed.zip.

This still shows errors but test phase worked fine.