vinno97 / realtime-pytorch-cyclegan-and-pix2pix Goto Github PK
View Code? Open in Web Editor NEWThis project forked from junyanz/pytorch-cyclegan-and-pix2pix
Real-time Image-to-image translation in PyTorch using the webcam
License: Other
This project forked from junyanz/pytorch-cyclegan-and-pix2pix
Real-time Image-to-image translation in PyTorch using the webcam
License: Other
Background:
Currently the command line option for videosource
accepts type int
which makes things difficult for using video files. But the VideoCapture()
class from opencv
can accept integers and the file path for a video source.
TODO:
The simple solution is to change the command line option and then do the type checking for either a valid file or an integer.
Hi! I was trying to use test_video.py on a file, but i'm using Google Colab so I had to do some modifications to your code...
It read frames but the data it returned didn't look right, for exemple:
`{'Real_A': tensor([[[[-1., -1., -1.],
[-1., -1., -1.],
[-1., -1., -1.],
...,
[-1., -1., -1.],
[-1., -1., -1.],
[-1., -1., -1.]],
[[-1., -1., -1.],
[-1., -1., -1.],
[-1., -1., -1.],
...,
[-1., -1., -1.],
[-1., -1., -1.],
[-1., -1., -1.]],
[[-1., -1., -1.],
[-1., -1., -1.],
[-1., -1., -1.],
...,
[-1., -1., -1.],
[-1., -1., -1.],
[-1., -1., -1.]],
...,
[[-1., -1., -1.],
[-1., -1., -1.],
[-1., -1., -1.],
...,
[-1., -1., -1.],
[-1., -1., -1.],
[-1., -1., -1.]],
[[-1., -1., -1.],
[-1., -1., -1.],
[-1., -1., -1.],
...,
[-1., -1., -1.],
[-1., -1., -1.],
[-1., -1., -1.]],
[[-1., -1., -1.],
[-1., -1., -1.],
[-1., -1., -1.],
...,
[-1., -1., -1.],
[-1., -1., -1.],
[-1., -1., -1.]]]])}
Max value of tensor: tensor(1.)
Min value of tensor: tensor(-1.)`
It isn't returning any more data than this, which means, no B data, or Fake_B data
What could be causing this and how can I fix this?
Thanks, amazing project
Background:
This is a fork from the original pytorch-CycleGAN-and-pix2pix
. The original has a bunch of new updates and improved code so it would be nice to update this fork so that the realtime video can use these new features. Luckily I have already patched the realtime feature into the latest release of pytorch-CycleGAN-and-pix2pix
, so it should be pretty easy to bring the latest changes of the original into this fork.
TODO:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.