Spaces:
Runtime error
Runtime error
Update graph_decoder/diffusion_model.py
Browse files
graph_decoder/diffusion_model.py
CHANGED
|
@@ -7,9 +7,9 @@ import torch.nn as nn
|
|
| 7 |
import torch.nn.functional as F
|
| 8 |
|
| 9 |
# from . import diffusion_utils as utils
|
| 10 |
-
|
| 11 |
# from .transformer import Transformer
|
| 12 |
-
|
| 13 |
|
| 14 |
class GraphDiT(nn.Module):
|
| 15 |
def __init__(
|
|
@@ -27,7 +27,7 @@ class GraphDiT(nn.Module):
|
|
| 27 |
pass
|
| 28 |
|
| 29 |
def generate(self, properties, guide_scale, num_nodes, number_chain_steps):
|
| 30 |
-
|
| 31 |
|
| 32 |
|
| 33 |
# class GraphDiT(nn.Module):
|
|
|
|
| 7 |
import torch.nn.functional as F
|
| 8 |
|
| 9 |
# from . import diffusion_utils as utils
|
| 10 |
+
from .molecule_utils import graph_to_smiles, check_valid
|
| 11 |
# from .transformer import Transformer
|
| 12 |
+
from .visualize_utils import MolecularVisualization
|
| 13 |
|
| 14 |
class GraphDiT(nn.Module):
|
| 15 |
def __init__(
|
|
|
|
| 27 |
pass
|
| 28 |
|
| 29 |
def generate(self, properties, guide_scale, num_nodes, number_chain_steps):
|
| 30 |
+
return 0, 0
|
| 31 |
|
| 32 |
|
| 33 |
# class GraphDiT(nn.Module):
|