zhangmozhe / deep-exemplar-based-video-colorization Goto Github PK
View Code? Open in Web Editor NEWThe source code of CVPR 2019 paper "Deep Exemplar-based Video Colorization".
Home Page: https://arxiv.org/abs/1906.09909
License: MIT License
The source code of CVPR 2019 paper "Deep Exemplar-based Video Colorization".
Home Page: https://arxiv.org/abs/1906.09909
License: MIT License
I need colab notebook please 🙏🏻
Could you please release a tiny illustrative training dataset, such that the preparation of a custom training data can be easily followed. Currently, it is not easy to prepare a custom training data by reading the train.py.
or could you please give a further explanation of the following fields?
(
image1_name,
image2_name,
reference_video_name,
reference_video_name1,
reference_name1,
reference_name2,
reference_name3,
reference_name4,
reference_name5,
reference_gt1,
reference_gt2,
reference_gt3,
)
Thank you very much.
Hello,
First of all, congrats for this amazing work, and thank you for sharing it.
When using the attribute --image_size and specifying the actual size of my input frames (720x964) in order for them not to be cropped, I get the following error :
Sizes of tensors must match except in dimension 3. Got 120 and 121 (The offending index is 0)
I tried numerous values and got this kind of error almost systematically. After a lot of trial and error, it seems that values matching the pattern 16 * p x 32 * q works (p and q integers).
Do you have any idea of what could be the cause of this error and if I am doing something wrong?
Thanks a lot.
NB : there is a small typo in README.md in the Test section : image-size instead of image_size.
Regardless of input aspect ratio - output always 16x9.
Tried to process 4x3 sample video, however output video is 16x9 cropped top/bottom.
Thanks for sharing the work!
Will the training pipeline be released?
how to train the model can i know each file what does it have and the format of each one to run the train successfully
哥们儿,没有显卡只使用CPU,怎么搞?
Hi !
Trying out test.py results in the following error:
Traceback (most recent call last): File "test.py", line 26, in <module> torch.cuda.set_device(0) File "C:\Users\natha\anaconda3\envs\ColorVid\lib\site-packages\torch\cuda\__init__.py", line 311, in set_device torch._C._cuda_setDevice(device) AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'
I tried installing pytorch manually using their tool https://pytorch.org/get-started/locally/ (with CUDA 11.6) but that doesn't resolve the issue.
Can someone help me understand what is going on ? Thanks !!
The original training command is
python --data_root [root of video samples] \ --data_root_imagenet [root of image samples] \ --gpu_ids [gpu ids] \
Maybe it should be
python train.py --data_root [root of video samples] \ --data_root_imagenet [root of image samples] \ --gpu_ids [gpu ids] \
?
I was working with the Colab program and there appears to be important models / files missing.
As a result the program has ceased to function. I've brough to the designers attention so hopefully will be resolved.
When i tested your pre-trained model, i met the problem called "CUDA error: an illegal memory access was encountered", can you provide the version of your CUDA, cudnn and pytorch
Could you provide detailed preprocessing scripts for Hollywood2 amd Imagenet datasets? Thanks a lot
Hello everyone! I ran into a problem launching a library from your repository, but after some experimentation, I managed to get it up and running. I want to share my experience so that other users do not waste their time looking for a solution.
conda create -n ColorVid python=3.6
conda activate ColorVid
pip install torch===1.6.0 torchvision===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
In «requirements.txt» replace: opencv_contrib_python>=4.1.0.25
To: opencv_contrib_python==4.1.0.25
pip install -r requirements.txt
python test.py --clip_path ./sample_videos/clips/v32 \
--ref_path ./sample_videos/ref/v32 \
--output_path ./sample_videos/output
conda deactivate
I'm sure this will improve the user experience and help new users get started with your library faster.
Thank you!
Pytorch, the older version does not exist or are avalible for install. Is it possible to update the script so it works?
Thanks for your great work! I have a question when i run test.py. Why don't you extract the feature of inference image out of the for loop. I haven't found any difference.
There seems a bug ofr feature centering with x_features - y_features.mean which I think should be x_features - x_features.mean
Hello, I read in the paper that "we train the network for 10 epichs with a batch size of 40 pairs of video frames. "
Is it effective after only 10 iterations? Is your data 768 videos, 25 frames per video? I only train one video at present, epoch=40, but I find that it has little effect. What may be the reason?
pairs_output_new.txt
, because I don't know the txt file format, I can't carry out training. Can you provide the files and sample formats required for training?I would appreciate your reply!!!
Are you guys planning to update the colab version??
Shall I know what is inccluded in pair_output_new.txt and pairs.txt , used for training?
Is it possible to colorize just one image?
Hello, I am running a 4gb nvidia GPU. Is that enough for inference? I try to run on ubuntu 18.04 as well as windows but always get a Out of memory error eventually. Sometimes happen after 2nd image and sometimes after 5th. This is 1080p video.
run test.py, error when colorizing the video 04.jpg
module 'cv2' has no attribute 'ximgproc'
Processing 4x3 video 912x720 outputs cropped and downscaled 16x9 768x432.
Playing around "python test.py --image-size [image-size] " doesn't help
My be I don't properly specify an arguments?
So, what the the proper use of --image-size [image-size] in order to get 912x720?
Greatly appreciate for suggesting.
Can you help me about downloading the pretrained models? because it does not exist in link that you upload.
video colorization very good and very impressive . but render image low size 768x432 . and video size also same. how to in increase the image size and video size. thank you..
I have no idea to train a new model on my dataset, if the author can provide a tiny dataset sample.
At present, after training, it is found that the generated test image is effective, but the color saturation is very low. Is it because of the colored model or other reasons?
I'm looking forward to your reply!!!
Hi, could i apply this method to image colorization and remove the temporal consistency loss?
BTW, how to get the pairs.txt/pairs_mid.txt/pairs_bad.txt used in videoloader_imagenet.py?
This post is actually a question about the scale_factor.
This is a great project! The colorization produced a very stable output from a sequence of frames!
Experimenting the scale_factor with a set of low resolution frames with 480 x 640 resolution gave me a supersizing result!
The code worked fine When changing the scale_factor=0.5 to 1.0 in test.py before colorization and also changing the scale_factor=2.0 to 1.0 after colorization.
The video from scale_factor 1.0 is less stable especially have more yellow regions than the default scale_factor of 0.5.
I understand that scaling down/up will not affect the viewing quality of the colored image.
The fist question is why the colorization become less stable by changing scale_factor in test.py?
It appears the scale_factor variable is also present in the models/ColorVidNet.py and models/NonlocalNet.py
The value in these files was not passed from test.py but may be related to value in test.py?
Does the scale_factor needs to be changed in thee files too? If so, how?
Thank you very much!
Thanks for your outstanding work!
I have some questions when I read it.
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.