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
# 参考: | |
# https://www.dskomei.com/entry/2022/03/13/114756 | |
# ゼロから作るDeepLearning4強化学習編 | |
import gymnasium as gym | |
import torch | |
import torch.nn as nn | |
import numpy as np | |
from torch.distributions import Categorical | |
class ActorCritic(nn.Module): |
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
using UdonSharp; | |
using UnityEngine; | |
using VRC.SDKBase; | |
using VRC.Udon; | |
public class PlayerCollider : UdonSharpBehaviour | |
{ | |
[SerializeField] | |
private GameObject _target; |
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 gymnasium as gym | |
import torch | |
import torch.nn as nn | |
class Q(nn.Module): | |
def __init__(self): | |
super().__init__() | |
self.fc1 = nn.Linear(4,64) | |
self.fc2 = nn.Linear(64,128) |
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
Shader "Unlit/DisplayMHE" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_ClipTh ("Clip Threshold", Range(0,1)) = 0.5 | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } |
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
# 以下を参考にしてます | |
# https://github.com/machine-perception-robotics-group/MPRGDeepLearningLectureNotebook/blob/master/13_rnn/06_Transformer.ipynb | |
import copy | |
import torch | |
import torch.nn as nn | |
import torchvision | |
import torchvision.transforms as transforms | |
from timm.models.layers import trunc_normal_ | |
import pytorch_lightning as pl |