This repository is created to assist people encountering difficulties running the offical repository from DAI-Lab, as the official one has not received updates for the past several years. Additionally, I have optimized the official version to enhance execution speed while maintaining overall performance integrity. Lastly, I have conducted testing on Windows 11 using the latest Python 3.11 and PyTorch 2.0.1
https://git-scm.com/
https://gnuwin32.sourceforge.net/packages/wget.htm
pip install torch_dct
cd data
bash download.sh
python train.py
python train.py --epochs 200 --lr 0.001 --data_dim 64
Default Hyperparameters Details:
Inference RivaGAN Model
After completing the model training, our objective is to encode a data watermark onto a video and subsequently extract it from the encoded footage. After the inference process, it will generate output_log.txt
file, providing a detailed record of the extracted data from each frame in the video and a watermarked video that contains the data
python inference.py --model_weight your_weight_path/model.pt
python inference.py --model_weight your_weight_path/model.pt --random_data No --your_data "1100 1001 0011 0000 1111 0101 1100 0011" --fps 30
Default Hyperparameters Details:
None
None
--random_data
to No
to use your own data./data/hollywood2/val/actioncliptest00002.avi
make_pair
function has been reverted to its original code due to instability issues during training