Skip to content

Commit

Permalink
chore: add dependency for example (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
anda-ren authored Dec 5, 2022
1 parent 4308466 commit 8983a8c
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions example/PennFudanPed/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Pillow
torch
torchvision
pycocotools
2 changes: 2 additions & 0 deletions example/cifar10/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Pillow
torch
torchvision
1 change: 1 addition & 0 deletions example/mnist/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ prepare-data:
[ -f data/t10k-labels-idx1-ubyte ] || ([ -z $(CN) ] && curl -o data/t10k-labels-idx1-ubyte https://starwhale-examples.s3.us-west-1.amazonaws.com/dataset/mnist/t10k-labels-idx1-ubyte) || curl -o data/t10k-labels-idx1-ubyte https://starwhale-examples.oss-cn-beijing.aliyuncs.com/dataset/mnist/t10k-labels-idx1-ubyte
[ -d models ] || mkdir -p models
[ -f models/mnist_cnn.pt ] || ([ -z $(CN) ] && curl -o models/mnist_cnn.pt https://starwhale-examples.s3.us-west-1.amazonaws.com/model/mnist.pth) || curl -o models/mnist_cnn.pt https://starwhale-examples.oss-cn-beijing.aliyuncs.com/model/mnist.pth
python3 -m pip install -r requirements.txt
2 changes: 2 additions & 0 deletions example/mnist/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
torch
torchvision
1 change: 1 addition & 0 deletions example/speech_command/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ prepare-data:
[ -f data/SpeechCommands/speech_commands_v0.02/validation_list.txt ] || tar -xzf data/speech_commands_v0.02.tar.gz -C data/SpeechCommands/speech_commands_v0.02
[ -d models ] || mkdir -p models
[ -f models/m5.pth ] || ([ -z $(CN) ] && curl -o models/m5.pth https://starwhale-examples.s3.us-west-1.amazonaws.com/model/speech_cmd_m5.pth) || curl -o models/m5.pth https://starwhale-examples.oss-cn-beijing.aliyuncs.com/model/speech_cmd_m5.pth
python3 -m pip install -r requirements.txt


2 changes: 2 additions & 0 deletions example/speech_command/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
torch
torchaudio
1 change: 1 addition & 0 deletions example/text_cls_AG_NEWS/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ prepare-data:
[ -d models ] || mkdir -p models
[ -f models/model.i ] || ([ -z $(CN) ] && curl -o models/model.i https://starwhale-examples.s3.us-west-1.amazonaws.com/model/ag_news/models/model.i) || curl -o models/model.i https://starwhale-examples.oss-cn-beijing.aliyuncs.com/model/ag_news/models/model.i
[ -f models/vocab.i ] || ([ -z $(CN) ] && curl -o models/vocab.i https://starwhale-examples.s3.us-west-1.amazonaws.com/model/ag_news/models/vocab.i) || curl -o models/vocab.i https://starwhale-examples.oss-cn-beijing.aliyuncs.com/model/ag_news/models/vocab.i
python3 -m pip install -r requirements.txt

2 changes: 2 additions & 0 deletions example/text_cls_AG_NEWS/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
torch
torchtext
2 changes: 2 additions & 0 deletions example/ucf101/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
torch
numpy
opencv-python-headless
2 changes: 1 addition & 1 deletion scripts/client_test/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def test_expl(self, expl_name: str) -> None:
workdir_ = str(expl["workdir"])

p = subprocess.Popen(
["make", "prepare-e2e-data"],
["make", "prepare-data"],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
cwd=workdir_,
Expand Down

0 comments on commit 8983a8c

Please sign in to comment.