Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scikit-luc
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luc Giffon
scikit-luc
Commits
fb69843a
Commit
fb69843a
authored
6 years ago
by
Luc Giffon
Browse files
Options
Downloads
Patches
Plain Diff
test vgg19 transformer working
parent
002851b1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
skluc/test/test_data/test_transformation/TestVGG19Transformer.py
+3
-7
3 additions, 7 deletions
...est/test_data/test_transformation/TestVGG19Transformer.py
with
3 additions
and
7 deletions
skluc/test/test_data/test_transformation/TestVGG19Transformer.py
+
3
−
7
View file @
fb69843a
import
unittest
import
unittest
from
skluc.main.data.mldatasets.Cifar100FineDataset
import
Cifar100FineDataset
from
skluc.main.data.mldatasets.Cifar10Dataset
import
Cifar10Dataset
from
skluc.main.data.mldatasets.Cifar10Dataset
import
Cifar10Dataset
from
skluc.main.data.mldatasets.SVHNDataset
import
SVHNDataset
from
skluc.main.data.transformation.VGG19Transformer
import
VGG19Transformer
from
skluc.main.data.transformation.VGG19Transformer
import
VGG19Transformer
from
skluc.main.utils
import
logger
from
skluc.main.utils
import
logger
class
TestVGG19Transformer
(
unittest
.
TestCase
):
class
TestVGG19Transformer
(
unittest
.
TestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
lst_name_cut_layers
=
[
self
.
lst_name_cut_layers
=
[
"
block5_conv4
"
,
"
block4_conv4
"
,
"
block5_pool
"
,
"
block3_pool
"
"
block3_pool
"
]
]
self
.
dict_datasets
=
{
self
.
dict_datasets
=
{
"
cifar10
"
:
Cifar10Dataset
,
"
cifar10
"
:
Cifar10Dataset
,
"
cifar100
"
:
Cifar100FineDataset
,
"
svhn
"
:
SVHNDataset
}
}
def
test_transform
(
self
):
def
test_transform
(
self
):
...
@@ -45,6 +40,7 @@ class TestVGG19Transformer(unittest.TestCase):
...
@@ -45,6 +40,7 @@ class TestVGG19Transformer(unittest.TestCase):
for
name_cut_layer
in
self
.
lst_name_cut_layers
:
for
name_cut_layer
in
self
.
lst_name_cut_layers
:
logger
.
info
(
"
Testing cut layer {}
"
.
format
(
name_cut_layer
))
logger
.
info
(
"
Testing cut layer {}
"
.
format
(
name_cut_layer
))
trans
=
VGG19Transformer
(
data_name
=
data_name
,
cut_layer_name
=
name_cut_layer
)
trans
=
VGG19Transformer
(
data_name
=
data_name
,
cut_layer_name
=
name_cut_layer
)
logger
.
debug
(
trans
.
keras_model
)
del
trans
del
trans
...
...
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