This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse, os, cv2 | |
import mxnet as mx, numpy as np | |
from collections import namedtuple | |
IMAGE_SIZE=224 | |
def resize_min(img, msize = 224): | |
old_size = img.shape[:2] # old_size is in (height, width) format | |
ratio = float(msize)/max(old_size) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.anyclip.benchmark_akka_http | |
import akka.actor.ActorSystem | |
import akka.http.scaladsl.Http | |
import akka.http.scaladsl.server.Route | |
import akka.stream.scaladsl.Sink | |
import akka.http.scaladsl.server.Directives._ | |
import akka.stream.ActorMaterializer | |
import com.anyclip.openrtb.BidRequest | |
import com.typesafe.config.{Config, ConfigFactory} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configuration: | |
spray.can { | |
server { | |
idle-timeout = 5 s | |
request-timeout = 85 ms | |
timeout-timeout = 5 ms | |
pipelining-limit = 1 | |
} | |
} |