Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
prenet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lishen
prenet
Commits
20813195
Commit
20813195
authored
May 18, 2023
by
lishen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix]
parent
6f50fe96
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
main.py
main.py
+3
-1
No files found.
main.py
View file @
20813195
...
...
@@ -18,7 +18,7 @@ def parse_option():
parser
=
argparse
.
ArgumentParser
(
'Progressive Region Enhancement Network(PRENet) for training and testing'
)
parser
.
add_argument
(
'--batchsize'
,
default
=
2
,
type
=
int
,
help
=
"batch size for single GPU"
)
parser
.
add_argument
(
'--dataset'
,
type
=
str
,
default
=
'
food101
'
,
help
=
'food2k, food101, food500'
)
parser
.
add_argument
(
'--dataset'
,
type
=
str
,
default
=
'
jkyy
'
,
help
=
'food2k, food101, food500'
)
parser
.
add_argument
(
'--image_path'
,
type
=
str
,
default
=
"E:/datasets/food101/images/"
,
help
=
'path to dataset'
)
parser
.
add_argument
(
"--train_path"
,
type
=
str
,
default
=
"E:/datasets/food101/meta_data/train_full.txt"
,
help
=
'path to training list'
)
parser
.
add_argument
(
"--test_path"
,
type
=
str
,
default
=
"E:/datasets/food101/meta_data/test_full.txt"
,
...
...
@@ -172,6 +172,8 @@ def main():
NUM_CATEGORIES
=
500
elif
args
.
dataset
==
"food2k"
:
NUM_CATEGORIES
=
2000
elif
args
.
dataset
==
"jkyy"
:
NUM_CATEGORIES
=
1788
net
=
load_model
(
'resnet50'
,
pretrain
=
False
,
require_grad
=
True
,
num_class
=
NUM_CATEGORIES
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment