Let's enable record-minmax to accept raw data as a representative dataset.
For someone who is not familiar with hdf5.
CC @lemmaa
record-minmax --input_data <input_data>
If
Else,
Future work may be to support some pre-precessing functionalities.
Else,
is assumed to be a text file which specifies the representative data.
This makes codes complicated. I don't think this is a good approach. It would be better to introduce new option.
I'm afraid adding a new option may confuse users. For example, if there are two options (e.g., --input_data (we should keep this option for backward compatibility), --raw_input_list), users can misuse the option (using with a wrong file type or using both options, etc).
using with a wrong file type
All the options have to solve this problem. Even you go with your option: h5 or not.
using both options
We also have this cases. I think this is natural. We have this situation on _one-import_tf_ where input model be one of saved model, keras or just graph_def.
1) to support by option
--input_data or --raw_input_list or ...--input_data for input file and addition option --data-type (default is h5 and there are others, list for text format list)2) automatic type detection
if, elseif, elseif,....anyway, there can be lots of bad cases that we can think of and lots of good things we only wany to think of..
there can be many complicated and error prone for also (1) but here we want to make it simple for both use interface and code.
@seanshpark I understand your concern.
Then, there are two options.
h5/hdf5 (default) and list/filelist)I'd like to go with the second option because it is simpler.
TODO
All done