Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
FML Project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Meet Narendra
FML Project
Commits
f41f38f6
Commit
f41f38f6
authored
Oct 04, 2022
by
Himali saini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added some files
parent
c85f68bf
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
5 deletions
+23
-5
1508.06576/image2gif.py
1508.06576/image2gif.py
+16
-0
1508.06576/logger.py
1508.06576/logger.py
+7
-5
1508.06576/styled.png
1508.06576/styled.png
+0
-0
1508.06576/test/content.jpg
1508.06576/test/content.jpg
+0
-0
No files found.
1508.06576/image2gif.py
0 → 100644
View file @
f41f38f6
import
imageio
import
os
fnames
=
[]
newNameFolder
=
''
path
=
'styled_images/'
+
newNameFolder
for
img
in
os
.
listdir
(
path
):
fnames
.
append
(
os
.
path
.
join
(
path
+
"/"
,
img
))
fnames
.
sort
()
with
imageio
.
get_writer
(
'gifs/'
+
newNameFolder
+
".gif"
,
mode
=
'I'
,
duration
=
0.9
)
as
writer
:
for
fname
in
fnames
:
image
=
imageio
.
imread
(
fname
)
writer
.
append_data
(
image
)
1508.06576/logger.py
View file @
f41f38f6
import
logging
import
os
from
xml.dom.minidom
import
Identified
#Author: @meetdoshi
class
Logger
:
'''
...
...
@@ -10,11 +11,12 @@ class Logger:
_formatter
=
logging
.
Formatter
(
'
%(asctime)
s
%(levelname)
s
%(message)
s'
)
def
__new__
(
cls
,
*
args
,
**
kwargs
):
if
not
cls
.
_instance
:
os
.
system
(
"rm -rf Logs/"
)
identifier
=
'content-reconstruction-mixed'
if
not
os
.
path
.
isdir
(
"Logs/"
):
os
.
mkdir
(
"Logs/"
)
logHandler
=
logging
.
FileHandler
(
"Logs/style_transfer.log"
)
logHandler
=
logging
.
FileHandler
(
"Logs/style_transfer
_"
+
identifier
+
"
.log"
)
logHandler
.
setFormatter
(
cls
.
_formatter
)
cls
.
_logHandler
=
logging
.
getLogger
(
"Logs/style_transfer.log"
)
cls
.
_logHandler
=
logging
.
getLogger
(
"Logs/style_transfer
_"
+
identifier
+
"
.log"
)
cls
.
_logHandler
.
setLevel
(
logging
.
INFO
)
cls
.
_logHandler
.
addHandler
(
logHandler
)
cls
.
_instance
=
super
(
Logger
,
cls
)
.
__new__
(
cls
,
*
args
,
**
kwargs
)
...
...
1508.06576/styled.png
deleted
100644 → 0
View file @
c85f68bf
138 KB
1508.06576/test/content.jpg
View replaced file @
c85f68bf
View file @
f41f38f6
100 KB
|
W:
|
H:
38.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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