Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
animegan2-pytorch
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
git
animegan2-pytorch
Commits
ed511fe0
Commit
ed511fe0
authored
Mar 30, 2023
by
mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filename
parent
39f0126d
Pipeline
#389
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
testVideo.py
testVideo.py
+12
-3
No files found.
testVideo.py
View file @
ed511fe0
...
...
@@ -131,6 +131,10 @@ def img2Comix(args,net,device,image):
@
profile
def
video2comix
(
args
):
if
args
.
filename
==
''
:
print
(
'miss param: filename'
)
return
device
=
args
.
device
net
=
Generator
()
...
...
@@ -142,9 +146,9 @@ def video2comix(args):
inputmp4
=
jj
(
args
.
input_dir
,
'f1_short
.mp4'
)
outputmp4
=
jj
(
args
.
output_dir
,
'f1_short_comi
.mp4'
)
outputh264
=
jj
(
args
.
output_dir
,
'f1_short_comi
_h264.mp4'
)
inputmp4
=
jj
(
args
.
input_dir
,
args
.
filename
+
'
.mp4'
)
outputmp4
=
jj
(
args
.
output_dir
,
args
.
filename
+
'
.mp4'
)
outputh264
=
jj
(
args
.
output_dir
,
args
.
filename
+
'
_h264.mp4'
)
vc
=
cv2
.
VideoCapture
(
inputmp4
)
print
(
'video open status:'
,
vc
.
isOpened
())
...
...
@@ -235,6 +239,11 @@ if __name__ == '__main__':
type
=
str
,
default
=
'./samples/inputs'
,
)
parser
.
add_argument
(
'--filename'
,
type
=
str
,
default
=
''
,
)
parser
.
add_argument
(
'--output_dir'
,
type
=
str
,
...
...
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