cc-ai / climategan

Code and pre-trained model for the algorithm generating visualisations of 3 climate change related events: floods, wildfires and smog.
https://thisclimatedoesnotexist.com
GNU General Public License v3.0
75 stars 18 forks source link

Removing enforced equality of data and opts.tasks #52

Closed 51N84D closed 4 years ago

51N84D commented 4 years ago

I don't think the relevant line in the "check_sample" function is what we want.

It enforces that the specified tasks are all in the samples. Some specified task might not have an equivalent sample (like 't' --> translation; there is no "sample" that corresponds to translation, but we may still want to specify it as a task).

Also, the "filter_samples()" function does enforces a weaker version of this, and there is a test case in "test_data.py" that ensures it is working properly

vict0rsch commented 4 years ago

fine by me