This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Tue Dec 17 08:04:29 2019 | |
| @author: shino | |
| """ | |
| from __future__ import print_function | |
| import torch | |
| import torch.nn as nn |
This file contains hidden or 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
| plink.exe -batch -pw PASSWORD user@ip "commando" |
This file contains hidden or 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
| psscp.exe -r -pw PASSWORD /local/path/data user@IPadress:/path/to/dir/ |
This file contains hidden or 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
| #include <torch/script.h> // One-stop header. | |
| #include <iostream> | |
| #include <memory> | |
| #include <ATen/ATen.h> | |
| #include "PytorchModel.h" | |
| #include <opencv2/opencv.hpp> | |
| #include <opencv2/imgproc/imgproc.hpp> | |
| #include <opencv2/highgui/highgui.hpp> | |
| #include <opencv2/core/core.hpp> |
This file contains hidden or 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
| #pragma once | |
| #include <torch/script.h> // One-stop header. | |
| #include <iostream> | |
| #include <memory> | |
| #include <ATen/ATen.h> | |
| #include <opencv2/opencv.hpp> | |
| #include <opencv2/imgproc/imgproc.hpp> | |
| #include <opencv2/highgui/highgui.hpp> |
This file contains hidden or 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
| #include <iostream> | |
| #include "PytorchModel.h" | |
| PytorchModel::PytorchModel() | |
| { | |
| } | |
| /** |
This file contains hidden or 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 torch | |
| import torch.nn as nn | |
| import torch.nn.functional as F | |
| from torch.autograd import Variable | |
| from models import modelName | |
| import numpy as np | |
| import cv2 |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| """ | |
| @author: shnhrtkyk | |
| """ | |
| path = "path/to/bin" | |
| with open(path, mode='rb') as fin: | |
| content = fin.read() | |
| # print(content) |
This file contains hidden or 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
| def loss(labels, logits): | |
| weights = tf.where(labels == 0, 1, 1) | |
| weights = tf.where(labels == 1, 1, weights) | |
| weights = tf.where(labels == 2, 2, weights) | |
| weights = tf.where(labels == 3, 20, weights) | |
| weights = tf.where(labels == 4, 20, weights) | |
| weights = tf.where(labels == 5, 20, weights) |
This file contains hidden or 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
| #!/bin/sh | |
| #$ -cwd | |
| #$ -l q_node=1 | |
| #$ -l h_rt=24:00:00 | |
| . /etc/profile.d/modules.sh |
NewerOlder