Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Elvin-Ma committed Jul 1, 2023
1 parent 89eef8c commit 0c296f8
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 0 deletions.
File renamed without changes.
13 changes: 13 additions & 0 deletions 12-model_deploy_guide/flask_deploy/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello_world():
return "<p>Hello, World!</p>"


if __name__ == '__main__':
# app.debug = True
# app.run(host='0.0.0.0', port=8987, debug=True)
app.run(host='0.0.0.0', port=5000)
4 changes: 4 additions & 0 deletions 14-docker_image_container_guide/READEME.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# start docker
- sudo systemctl start docker
- sudo service docker start

Binary file not shown.
12 changes: 12 additions & 0 deletions 14-docker_image_container_guide/test_mtn.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello_world():
return "<p>Hello, World!</p>"


if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)

21 changes: 21 additions & 0 deletions 8-model_train_guide/yolov8/inference_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from ultralytics import YOLO


# train
# Load a model
# model = YOLO('yolov8n-seg.yaml') # build a new model from YAML
# model = YOLO('yolov8n-seg.pt') # load a pretrained model (recommended for training)
# model = YOLO('yolov8n-seg.yaml').load('yolov8n.pt') # build from YAML and transfer weights

# # Train the model
# model.train(data='coco128-seg.yaml', epochs=100, imgsz=640)


# inference
# Load a model
model = YOLO('yolov8n-seg.pt') # load an official model
# model = YOLO('path/to/best.pt') # load a custom model

# Predict with the model
results = model('https://ultralytics.com/images/bus.jpg') # predict on an image
print(results)
Binary file added 8-model_train_guide/yolov8/yolov8n-seg.pt
Binary file not shown.

0 comments on commit 0c296f8

Please sign in to comment.