Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
JeffreyXiang
/
TRELLIS
like
1.46k
Running
on
Zero
App
Files
Files
Community
18
bd46f72
TRELLIS
/
trellis
/
pipelines
/
samplers
/
base.py
JeffreyXiang
Upload
db6a3b7
14 days ago
raw
Copy download link
history
blame
Safe
286 Bytes
from
typing
import
*
from
abc
import
ABC, abstractmethod
class
Sampler
(
ABC
):
"""
A base class for samplers.
"""
@abstractmethod
def
sample
(
self,
model,
**kwargs
):
"""
Sample from a model.
"""
pass