提交 66e26350 编写于 作者: K Kentaro Wada

Call matplotlib.use('Agg') in json_to_dataset.py

上级 3c9677c3
......@@ -11,7 +11,6 @@ matrix:
- SYSTEM_PYTHON=/usr/bin/python
- PIP=pip
- PYTHON=python
- MPLBACKEND=Agg
addons:
apt:
packages:
......
#!/usr/bin/env python
import argparse
import json
import os
import os.path as osp
import warnings
import matplotlib
matplotlib.use('Agg')
import numpy as np
import PIL.Image
import yaml
......@@ -15,8 +16,8 @@ from labelme import utils
def main():
warnings.warn("This script is aimed to demonstrate how to convert the\n"
"JSON file to a single image dataset, and not to handle\n"
"multiple JSON files to generate a real-use dataset.")
"JSON file to a single image dataset, and not to handle\n"
"multiple JSON files to generate a real-use dataset.")
parser = argparse.ArgumentParser()
parser.add_argument('json_file')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册