Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.learn.tensorflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.learn.tensorflow
Merge requests
!85
Porting to TF2
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Porting to TF2
tf2
into
master
Overview
8
Commits
24
Pipelines
5
Changes
8
1 unresolved thread
Hide all comments
Merged
Tiago de Freitas Pereira
requested to merge
tf2
into
master
4 years ago
Overview
8
Commits
24
Pipelines
5
Changes
8
1 unresolved thread
Hide all comments
Expand
Fixes
#75 (closed)
Edited
4 years ago
by
Amir MOHAMMADI
0
0
Merge request reports
Viewing commit
cbdc2d10
Prev
Next
Show latest version
8 files
+
0
−
593
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
cbdc2d10
remove style transfer
· cbdc2d10
Amir MOHAMMADI
authored
4 years ago
bob/learn/tensorflow/configs/style_transfer/inception_v1_example.py deleted
100644 → 0
+
0
−
27
Options
"""
Example using inception resnet v1
"""
import
tensorflow
as
tf
# -- architecture
from
bob.learn.tensorflow.network
import
inception_resnet_v1_batch_norm
architecture
=
inception_resnet_v1_batch_norm
# --checkpoint-dir
from
bob.extension
import
rc
checkpoint_dir
=
rc
[
'
bob.bio.face_ongoing.inception-v1_batchnorm_rgb
'
]
# --style-end-points and -- content-end-points
style_end_points
=
[
"
Conv2d_1a_3x3
"
,
"
Conv2d_2b_3x3
"
]
content_end_points
=
[
"
Block8
"
]
scopes
=
{
"
InceptionResnetV1/
"
:
"
InceptionResnetV1/
"
}
# --style-image-paths
style_image_paths
=
[
"
vincent_van_gogh.jpg
"
,
"
vincent_van_gogh2.jpg
"
]
# --preprocess-fn
preprocess_fn
=
tf
.
image
.
per_image_standardization
Loading