VICO-UoE / DatasetCondensation

Dataset Condensation (ICLR21 and ICML21)
MIT License
457 stars 90 forks source link

Generate condensed images from file.pt #13

Closed tranleanh closed 2 years ago

tranleanh commented 2 years ago

Hi VICO-UoE,

Nice work!

I have tried the code and the training works so well.

But may I ask how to extract the generated images from the .pt file?

Thanks in advance!

PatrickZH commented 2 years ago

Hi, thanks! You can use the code at https://github.com/VICO-UoE/DatasetCondensation/blob/db516057ab92bab4ea50bad0811e7f059b019b79/main.py#L136 to first load the pt file, then do de-normalization, and save as png files.

tranleanh commented 2 years ago

Thanks a lot! 👍

tranleanh commented 2 years ago

Hi @PatrickZH,

Again, thanks for your response!

I read the code and the code line that you have shown me.

But it's not what I mentioned actually.

What I am wondering is how can we obtain the synthetic images (condensed images) by using the pt files which were provided in the Google Drive?

tranleanh commented 2 years ago

I have found the solution.

Thanks!

omarr12229 commented 1 week ago

@tranleanh could you mention the solution you found? TIA