optimize imports

This commit is contained in:
Glenn Jocher committed 2020-08-20 21:17:40 -07:00
1 parent 4447f4b937
commit b42e8a531b
5 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -8,8 +8,8 @@ import argparse
import torch import torch
from utils.google_utils import attempt_download
from utils.general import set_logging from utils.general import set_logging
from utils.google_utils import attempt_download
if __name__ == '__main__': if __name__ == '__main__':
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
+1 -1
View File
@@ -1,6 +1,6 @@
import argparse import argparse
import math
import logging import logging
import math
from copy import deepcopy from copy import deepcopy
from pathlib import Path from pathlib import Path
+1
View File
@@ -1275,3 +1275,4 @@ def plot_results(start=0, stop=0, bucket='', id=(), labels=(),
fig.tight_layout() fig.tight_layout()
ax[1].legend() ax[1].legend()
fig.savefig(Path(save_dir) / 'results.png', dpi=200) fig.savefig(Path(save_dir) / 'results.png', dpi=200)
+1
View File
@@ -6,6 +6,7 @@ import os
import platform import platform
import time import time
from pathlib import Path from pathlib import Path
import torch import torch
+1 -1
View File
@@ -1,7 +1,7 @@
import logging
import math import math
import os import os
import time import time
import logging
from copy import deepcopy from copy import deepcopy
import torch import torch