Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dcnv3
Commits
6c82eb88
Commit
6c82eb88
authored
Jan 16, 2025
by
zhe chen
Browse files
Fix the issue of the missing val.txt (#163)
parent
1ccf7825
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
classification/dataset/build.py
classification/dataset/build.py
+2
-2
classification/train_in1k.sh
classification/train_in1k.sh
+1
-1
classification/train_in1k_deepspeed.sh
classification/train_in1k_deepspeed.sh
+1
-1
No files found.
classification/dataset/build.py
View file @
6c82eb88
...
...
@@ -12,7 +12,7 @@ import torch.distributed as dist
from
timm.data
import
Mixup
,
create_transform
from
torchvision
import
transforms
from
.cached_image_folder
import
ImageCephDataset
from
.cached_image_folder
import
CachedImageFolder
,
ImageCephDataset
from
.samplers
import
NodeDistributedSampler
,
SubsetRandomSampler
try
:
...
...
@@ -214,7 +214,7 @@ def build_dataset(split, config):
on_memory
=
config
.
DATA
.
IMG_ON_MEMORY
)
elif
prefix
==
'val'
:
root
=
os
.
path
.
join
(
config
.
DATA
.
DATA_PATH
,
'val'
)
dataset
=
ImageCephDataset
(
root
,
'val'
,
transform
=
transform
)
dataset
=
CachedImageFolder
(
root
,
transform
=
transform
)
nb_classes
=
1000
elif
config
.
DATA
.
DATASET
==
'imagenet22K'
:
if
prefix
==
'train'
:
...
...
classification/train_in1k.sh
View file @
6c82eb88
...
...
@@ -24,5 +24,5 @@ PYTHONPATH="$(dirname $0)/..":$PYTHONPATH \
--cfg
${
CONFIG
}
\
--accumulation-steps
1
\
--local-rank
0
\
--data-path
/mnt/lustre/share
/image
s
\
--data-path
data
/image
net
\
--output
work_dirs
${
@
:4
}
classification/train_in1k_deepspeed.sh
View file @
6c82eb88
...
...
@@ -23,5 +23,5 @@ PYTHONPATH="$(dirname $0)/..":$PYTHONPATH \
python
-u
main_deepspeed.py
\
--cfg
${
CONFIG
}
\
--local-rank
0
\
--data-path
/mnt/lustre/share
/image
s
\
--data-path
data
/image
net
\
--output
work_dirs_deepspeed
${
@
:4
}
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