Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Informative and Representative Triplet Selection for Multi-Label Remote Sensing Image Retrieval
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RSiM
Informative and Representative Triplet Selection for Multi-Label Remote Sensing Image Retrieval
Commits
bb0e63df
Commit
bb0e63df
authored
3 years ago
by
Gencer Sumbul
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
db2caeb7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/server.das-its-ucm-vgg.yaml
+2
-2
2 additions, 2 deletions
config/server.das-its-ucm-vgg.yaml
source/model_ucm.py
+5
-10
5 additions, 10 deletions
source/model_ucm.py
with
7 additions
and
12 deletions
config/server.das-its-ucm-
efficientnet
.yaml
→
config/server.das-its-ucm-
vgg
.yaml
+
2
−
2
View file @
bb0e63df
general
:
output_path
:
"
/media/storagecube/gencer/semanticTripletSampling/dumps/das-its-ucm-
efficientnet
"
output_path
:
"
/media/storagecube/gencer/semanticTripletSampling/dumps/das-its-ucm-
vgg
"
version
:
"
1"
clear_old_output
:
false
...
...
@@ -9,7 +9,7 @@ general:
archive_data_size
:
420
model_args
:
model_arch
:
"
efficientnet
"
model_arch
:
"
vgg
"
feature_size
:
256
train
:
...
...
This diff is collapsed.
Click to expand it.
source/model_ucm.py
+
5
−
10
View file @
bb0e63df
...
...
@@ -46,15 +46,10 @@ class PredefinedModel(BaseModel):
return
self
.
final_layer
(
x
)
class
EfficientNetB0
(
PredefinedModel
):
class
VGG16
(
PredefinedModel
):
def
__init__
(
self
,
**
kwargs
):
super
(
EfficientNetB0
,
self
).
__init__
(
tf
.
keras
.
applications
.
EfficientNet
(
1.0
,
1.0
,
224
,
0.2
,
model_name
=
'
efficientnetb0
'
),
**
kwargs
)
super
(
VGG16
,
self
).
__init__
(
tf
.
keras
.
applications
.
VGG16
,
**
kwargs
)
class
ResNet50v2
(
PredefinedModel
):
def
__init__
(
self
,
**
kwargs
):
...
...
@@ -126,8 +121,8 @@ class TripletModel(BaseModel):
self
.
internal_model
=
DenseNet
()
elif
model_arch
==
'
scnn
'
:
self
.
internal_model
=
SCNN
()
elif
model_arch
==
'
efficientnet
'
:
self
.
internal_model
=
EfficientNetB0
()
elif
model_arch
==
'
vgg
'
:
self
.
internal_model
=
VGG16
()
else
:
raise
ValueError
(
f
'
Invalid model architecture
"
{
model_arch
}
"
.
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment