rwightman / posenet-pytorch

A PyTorch port of Google TensorFlow.js PoseNet (Real-time Human Pose Estimation)
Apache License 2.0
307 stars 99 forks source link

fixed encoding error #6

Closed soheilysf closed 5 years ago

soheilysf commented 5 years ago

This will fix the utf-8 encoding error, when the model data are getting fetched from URLs

refer to this issue: [https://github.com/rwightman/posenet-pytorch/issues/5]

rwightman commented 5 years ago

The issue was google started returning gzipped content, the requests module handles that for you but adds a dep.

I fixed it a different way for the TF version, forgot to port over here. https://github.com/rwightman/posenet-python/commit/97c6f6a3e0f25bbc9c9095ddef6e768e56c2ed43

But this is nice an simple despite the extra dep...