Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

一些防呆设计,增加对苹果M系列芯片支持 #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
whitewatercn wants to merge 2 commits into TingsongYu:main
base: main
Choose a base branch
Loading
from whitewatercn:main
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
修改了--data-path为必须使用的参数,取消其默认设置,提示用户设置为自己 的dataset路径,修改了--model默认参数为cp...
...u,以免无gpu报错
  • Loading branch information
whitewatercn committed Jun 10, 2024
commit 94360a51fdaf905b51b5bd617c870216560ad14a
4 changes: 2 additions & 2 deletions code/chapter-8/01_classification/train_main.py
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def get_args_parser(add_help=True):

parser = argparse.ArgumentParser(description="PyTorch Classification Training", add_help=add_help)

parser.add_argument("--data-path", default=r"G:\deep_learning_data\chest_xray", type=str, help="dataset path")
parser.add_argument("--data-path", required = True, type=str, help="dataset path, like G:\deep_learning_data\chest_xray/train")
parser.add_argument("--model", default="convnext-tiny", type=str,
help="model name; resnet50/convnext/convnext-tiny")
parser.add_argument("--device", default="cuda", type=str, help="device (Use cuda or cpu Default: cuda)")
parser.add_argument("--device", default="cpu", type=str, help="device (Use cuda or cpu Default: cuda)")
parser.add_argument(
"-b", "--batch-size", default=8, type=int, help="images per gpu, the total batch size is $NGPU x batch_size"
)
Expand Down

AltStyle によって変換されたページ (->オリジナル) /