国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
#include <glog/logging.h> | |
#include <unsupported/Eigen/AutoDiff> | |
#include <unsupported/Eigen/LevenbergMarquardt> | |
template <typename T> | |
Eigen::Matrix<T, Eigen::Dynamic, 1> | |
func(const Eigen::Matrix<T, Eigen::Dynamic, 1> &xs, | |
const Eigen::Matrix<T, 3, 1> &x) | |
{ | |
auto xsa = xs.array(); |
class NetVLADLoupe(nn.Module): | |
def __init__(self, feature_size, max_samples, cluster_size, output_dim, | |
gating=True, add_batch_norm=True, is_training=True): | |
super(NetVLADLoupe, self).__init__() | |
self.feature_size = feature_size | |
self.max_samples = max_samples | |
self.output_dim = output_dim | |
self.is_training = is_training | |
self.gating = gating | |
self.add_batch_norm = add_batch_norm |
Source: StackOverflow
Question: How do I save Bitmap to extrenal storage in Android?
Answer:
Use this function to save your bitmap in SD card:
public void saveTempBitmap(Bitmap bitmap) {
if (isExternalStorageWritable()) {
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
template<class Vector3> | |
std::pair<Vector3, Vector3> best_plane_from_points(const std::vector<Vector3> & c) | |
{ | |
// copy coordinates to matrix in Eigen format | |
size_t num_atoms = c.size(); | |
Eigen::Matrix< Vector3::Scalar, Eigen::Dynamic, Eigen::Dynamic > coord(3, num_atoms); | |
for (size_t i = 0; i < num_atoms; ++i) coord.col(i) = c[i]; | |
// calculate centroid | |
Vector3 centroid(coord.row(0).mean(), coord.row(1).mean(), coord.row(2).mean()); |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |