union commit

This commit is contained in:
Jiao77
2025-09-03 23:01:00 +08:00
parent b4929311d7
commit d110130008
29 changed files with 29 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
# .gitignore
reference/
.venv/

View File

@@ -1 +1,2 @@
.python-version
3.12

View File

@@ -1,3 +1,4 @@
<!-- README.md -->
<div align="center">
<p align="center">

View File

@@ -1,3 +1,4 @@
<!-- README_zh.md -->
<div align="center">
<p align="center">

View File

@@ -1,3 +1,4 @@
<!-- TODO.md -->
# TODO — Geo-Layout-Transformer 🚀
目的:遍历项目并把发现的未实现/待完善项整理到此文件,方便后续开发分配与跟踪。📝

View File

@@ -1,3 +1,4 @@
# configs/default.yaml
# Default Configuration for Geo-Layout Transformer
# 1. Data Preprocessing

View File

@@ -1,3 +1,4 @@
# configs/hotspot_detection.yaml
# Hotspot Detection Task Configuration
# Inherits from default.yaml

View File

@@ -1,3 +1,4 @@
# main.py
import argparse
from torch.utils.data import random_split

View File

@@ -1,3 +1,4 @@
# requirements.txt
torch
torch-geometric
gdstk

View File

@@ -1,3 +1,4 @@
# scripts/preprocess_gds.py
import argparse
import os
from tqdm import tqdm

View File

@@ -1,3 +1,4 @@
# scripts/visualize_attention.py
import argparse
import torch
import matplotlib.pyplot as plt

View File

@@ -1,3 +1,4 @@
# src/data/dataset.py
import torch
from torch_geometric.data import Dataset, InMemoryDataset
import os

View File

@@ -1,3 +1,4 @@
# src/data/gds_parser.py
from typing import List, Dict, Tuple
import gdstk
import numpy as np

View File

@@ -1,3 +1,4 @@
# src/data/graph_constructor.py
from typing import List, Dict, Tuple
import torch
from torch_geometric.data import Data

View File

@@ -0,0 +1 @@
# src/data/init.py

View File

@@ -1,3 +1,4 @@
# src/engine/evaluator.py
import torch
from torch_geometric.data import DataLoader
from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score, roc_auc_score

View File

@@ -0,0 +1 @@
# src/engine/init.py

View File

@@ -1,3 +1,4 @@
# src/engine/self_supervised.py
import torch
import torch.nn as nn
from torch.optim import AdamW

View File

@@ -1,3 +1,4 @@
# src/engine/trainer.py
import torch
import torch.nn as nn
from torch.optim import Adam, AdamW

View File

@@ -0,0 +1 @@
# src/init.py

View File

@@ -1,3 +1,4 @@
# src/models/geo_layout_transformer.py
import torch
import torch.nn as nn
from .gnn_encoder import GNNEncoder

View File

@@ -1,3 +1,4 @@
# src/models/gnn_encoder.py
import torch
import torch.nn as nn
from torch_geometric.nn import GCNConv, SAGEConv, GATConv, global_mean_pool

View File

@@ -0,0 +1 @@
# src/models/init.py

View File

@@ -1,3 +1,4 @@
# src/models/task_heads.py
import torch
import torch.nn as nn

View File

@@ -1,3 +1,4 @@
# src/models/transformer_core.py
import torch
import torch.nn as nn
import math

View File

@@ -1,3 +1,4 @@
# src/utils/config_loader.py
import yaml
from pathlib import Path

View File

@@ -0,0 +1 @@
# src/utils/init.py

View File

@@ -1,3 +1,4 @@
# src/utils/logging.py
import logging
import sys

1
uv.lock generated
View File

@@ -1,3 +1,4 @@
# uv.lock
version = 1
revision = 2
requires-python = ">=3.12"