From 70bfe9e056d87cd328d3b21fd6bd73a62668e2f7 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 16 Jun 2024 19:34:04 +0200 Subject: [PATCH 1/2] Refactor code for speed and clarity --- .github/workflows/format.yml | 4 ++-- README.md | 10 +++++----- gcp/wave_pytorch_gcp.py | 1 - train.py | 1 - train_tf.py | 1 - 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 81e1018..ce7ff4f 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -6,9 +6,9 @@ name: Ultralytics Actions on: push: - branches: [main,master] + branches: [main, master] pull_request: - branches: [main,master] + branches: [main, master] jobs: format: diff --git a/README.md b/README.md index 384cf70..f30244b 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,11 @@ The primary goal of this project is to develop and share Machine Learning techni Before you dive into waveform vector exploitation with our WAVE code, make sure your machine is set up with the following: - Python 3.7 or later, plus these packages installed with `pip3 install -U -r requirements.txt`: - - `numpy` - - `scipy` - - `torch` (version 0.4.0 or later) - - `tensorflow` (version 1.8.0 or later) - - `plotly` (optional, for visualization) + - `numpy` + - `scipy` + - `torch` (version 0.4.0 or later) + - `tensorflow` (version 1.8.0 or later) + - `plotly` (optional, for visualization) # 🏃 Run Instructions diff --git a/gcp/wave_pytorch_gcp.py b/gcp/wave_pytorch_gcp.py index 6427e67..753b68e 100644 --- a/gcp/wave_pytorch_gcp.py +++ b/gcp/wave_pytorch_gcp.py @@ -4,7 +4,6 @@ import scipy.io import torch - from utils import * # set printoptions diff --git a/train.py b/train.py index c0c5730..a13600b 100644 --- a/train.py +++ b/train.py @@ -3,7 +3,6 @@ import scipy.io import torch.nn as nn - from utils.torch_utils import * from utils.utils import * diff --git a/train_tf.py b/train_tf.py index 9b80c23..9f3733c 100644 --- a/train_tf.py +++ b/train_tf.py @@ -6,7 +6,6 @@ import tensorflow as tf import tensorflow.contrib.eager as tfe from plotly.offline import plot - from utils.utils import * tf.enable_eager_execution() From cb3d4f00b0c20c30b0e15bc7e8f7267f64fefac6 Mon Sep 17 00:00:00 2001 From: UltralyticsAssistant Date: Sun, 16 Jun 2024 17:34:24 +0000 Subject: [PATCH 2/2] Auto-format by https://ultralytics.com/actions --- README.md | 10 +++++----- train_tf.py | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f30244b..384cf70 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,11 @@ The primary goal of this project is to develop and share Machine Learning techni Before you dive into waveform vector exploitation with our WAVE code, make sure your machine is set up with the following: - Python 3.7 or later, plus these packages installed with `pip3 install -U -r requirements.txt`: - - `numpy` - - `scipy` - - `torch` (version 0.4.0 or later) - - `tensorflow` (version 1.8.0 or later) - - `plotly` (optional, for visualization) + - `numpy` + - `scipy` + - `torch` (version 0.4.0 or later) + - `tensorflow` (version 1.8.0 or later) + - `plotly` (optional, for visualization) # 🏃 Run Instructions diff --git a/train_tf.py b/train_tf.py index 9f3733c..097927b 100644 --- a/train_tf.py +++ b/train_tf.py @@ -4,7 +4,6 @@ import plotly.graph_objs as go import scipy.io import tensorflow as tf -import tensorflow.contrib.eager as tfe from plotly.offline import plot from utils.utils import *