Browse Source

Fix python dependencies

tags/v0.3.5-rc0
haixuanTao 1 year ago
parent
commit
c4983fa822
3 changed files with 2 additions and 9 deletions
  1. +1
    -1
      examples/python-dataflow/requirements.txt
  2. +0
    -7
      examples/python-dataflow/run.rs
  3. +1
    -1
      examples/python-operator-dataflow/requirements.txt

+ 1
- 1
examples/python-dataflow/requirements.txt View File

@@ -6,7 +6,7 @@ ultralytics
gitpython
ipython # interactive notebook
matplotlib>=3.2.2
numpy>=1.18.5,<2.0.0
numpy<2.0.0 # See: https://github.com/opencv/opencv-python/issues/997
opencv-python>=4.1.1
Pillow>=7.1.2
psutil # system resources


+ 0
- 7
examples/python-dataflow/run.rs View File

@@ -1,5 +1,4 @@
use dora_core::{get_pip_path, get_python_path, run};
use dora_download::download_file;
use dora_tracing::set_up_tracing;
use eyre::{bail, ContextCompat, WrapErr};
use std::path::Path;
@@ -73,12 +72,6 @@ async fn main() -> eyre::Result<()> {
)
.await
.context("maturin develop failed")?;
download_file(
"https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt",
Path::new("yolov8n.pt"),
)
.await
.context("Could not download weights.")?;

let dataflow = Path::new("dataflow.yml");
run_dataflow(dataflow).await?;


+ 1
- 1
examples/python-operator-dataflow/requirements.txt View File

@@ -6,7 +6,7 @@ ultralytics
gitpython
ipython # interactive notebook
matplotlib>=3.2.2
numpy>=1.18.5,<2.0.0
numpy<2.0.0
opencv-python>=4.1.1
Pillow>=7.1.2
psutil # system resources


Loading…
Cancel
Save