Skip to content

Instantly share code, notes, and snippets.

View hieuphung97's full-sized avatar
🦔

Hieu Phung (Henry) hieuphung97

🦔
View GitHub Profile
@hieuphung97
hieuphung97 / private_fork.md
Created October 19, 2022 02:17 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

# Source: https://github.com/kornia/kornia/blob/master/kornia/losses/focal.py
from typing import Optional
import torch
import torch.nn as nn
import torch.nn.functional as F
def one_hot(labels: torch.Tensor,
num_classes: int,
# Source: https://github.com/theRealSuperMario/supermariopy/blob/master/scripts/tflogs2pandas.py
#!/usr/bin/env python3
import tensorflow as tf
import glob
import os
import pandas as pd
import traceback
from tensorboard.backend.event_processing.event_accumulator import EventAccumulator