Closed zijwang closed 3 years ago
based on https://github.com/euagendas/m3inference/pull/17
Test:
> python scripts/preprocess.py --source_dir test/pic/ --output_dir test/pic_resized/ --jsonl_path test/data.jsonl --jsonl_outpath test/data_resized.jsonl --skip_logging (no output)
>>> from m3inference import M3Inference >>> import pprint >>> m3 = M3Inference(skip_logging=True) >>> pred = m3.infer('./test/data_resized.jsonl') # also see docstring for details >>> pprint.pprint(pred) OrderedDict([('720389270335135745', {'age': {'19-29': 0.1546, '30-39': 0.114, '<=18': 0.0481, '>=40': 0.6833}, ...
Hey @zijwang I just cloned this branch and tested with M3Inference and M3Twitter and the skip_logging option works great! This works for my use case.
M3Inference
M3Twitter
skip_logging
Sounds good. Thanks, @Jaggler3 ! I will get the PR merged.
based on https://github.com/euagendas/m3inference/pull/17
Test: