pandazx's blog

データ分析など雑多な技術ブログ

DCインフラ勉強メモ 2019.10.17

NEBS

RU

気になるPython Library 2019.9.20

DeepPrivacy

A Generative Adversarial Network for Face Anonymization

https://github.com/hukkelas/DeepPrivacy

顔検出して、その顔を匿名化。ただし、元画像のデータ分布は維持する。匿名化した画像を見ると匿名化というより、表情を変えた画像を生成しているように見える。論文は読んでないが。顔検出で個人特定できない画像に変換することが目的なのかもしれない。

 

Reference

Python Weekly.

気になるPythonライブラリ 2019.9.6

faceswap
FaceSwap is a tool that utilizes deep learning to recognize and swap faces in pictures and videos.

https://github.com/deepfakes/faceswap

 

nlp
Natural Language Processing Best Practices & Examples.

https://github.com/microsoft/nlp

 

Buffalo 
A fast and scalable production-ready open source project for recommender systems.

https://github.com/kakao/buffalo

 

Reference

Python Weekly.

気になるPythonライブラリ 2019.9.1

HungaBunga

Brute-Force all sklearn models with all parameters using .fit .predict!

https://github.com/ypeleg/HungaBunga

 

Causal ML

Uplift modeling and causal inference with machine learning algorithms.

https://github.com/uber/causalml

 

Grover

Grover is a model for Neural Fake News -- both generation and detection. However, it probably can also be used for other generation tasks.

https://github.com/rowanz/grover

 

Reference

Python Weekly.

シェルスクリプトで実行時間測定

time sh xxx.sh とすれば、実行時間を測定できるが、 シェルスクリプト内部で計算したい場合。

start_dt=`date +%s`

# Some processing
sleep 1

end_dt=`date +%s`

start_dt_str=`date +%Y%m%d_%H%M%S_%3N -d @$start_dt`
end_dt_str=`date +%Y%m%d_%H%M%S_%3N -d @$end_dt`
elapsed_time=`expr $end_dt - $start_dt`

# Show result
echo "Start: " $start_dt_str
echo "End  : " $end_dt_str
echo "Elapsed time(second) : " $elapsed_time