Skip to content

Instantly share code, notes, and snippets.

:octocat:
.\ |

vfdev vfdev-5

:octocat:
.\ |
Block or report user

Report or block vfdev-5

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vfdev-5
vfdev-5 / README.md
Last active May 23, 2019
ROS development on MacOSX using docker
View README.md

ROS development on MacOSX using docker

We need to use docker-machine to handle USB ports inside the docker.

Docker Machine (0.16.1)

@vfdev-5
vfdev-5 / reproduce_error.py
Last active Mar 6, 2019
TypeError: _queue_reduction(): incompatible function arguments. The following argument types are supported:
View reproduce_error.py
from __future__ import print_function
import argparse
import random
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
@vfdev-5
vfdev-5 / notes_pytorch_distributed.md
Created Feb 26, 2019
Notes on PyTorch distributed
View notes_pytorch_distributed.md

Some notes on launching distributed computations with PyTorch

  • Inside a docker container
  • Using NCCL and TCP or Shared file-system
  • PyTorch version: 1.0.1.post2
  • 2 Nodes / 3 GPUs

Docker container

We need to run the container with --network=host option

@vfdev-5
vfdev-5 / README.md
Created Feb 4, 2019
How to remotely debug C++ program from VSCode
View README.md
@vfdev-5
vfdev-5 / fast_resnet.py
Last active Jan 9, 2019
PyTorch model's implementations compare by forward time
View fast_resnet.py
# Implementation from https://github.com/davidcpage/cifar10-fast
# Adapted to python 3.5
# TorchGraph(
# (prep_conv): Conv2d(3, 64, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
# (prep_bn): BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
# (prep_relu): ReLU(inplace)
# (layer1_conv): Conv2d(64, 128, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
# (layer1_bn): BatchNorm2d(128, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True)
# (layer1_relu): ReLU(inplace)
@vfdev-5
vfdev-5 / accuracy.py
Created Dec 25, 2018
Custom ignite metrics : Accuracy/Precision/Recall with multilabel option
View accuracy.py
from __future__ import division
import torch
from ignite.metrics.metric import Metric
from ignite.exceptions import NotComputableError
class _BaseClassification(Metric):
@vfdev-5
vfdev-5 / how_to_run.md
Last active Aug 17, 2018
Ignite training with online metrics profiling
View how_to_run.md

Just run as

python -m cProfile -o run.prof script.py
@vfdev-5
vfdev-5 / Dockerfile
Created Jul 18, 2018
Dockerfile with ROS Kinetic + UR5
View Dockerfile
FROM osrf/ros:kinetic-desktop-xenial
MAINTAINER vfdev-5
LABEL version="0.1"
LABEL description="ROS-kinetic and UR package"
# Update all
RUN apt-get update
@vfdev-5
vfdev-5 / Ignite_on_Fruits_360.ipynb
Last active Aug 23, 2018
57a7df109590e195800d980b1dfafb4c
View Ignite_on_Fruits_360.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vfdev-5
vfdev-5 / resnet_v2_graph.ipynb
Last active May 7, 2018
Graph of ResNetV2-18 & 50 with tensorboardX
View resnet_v2_graph.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.