Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
JeffreyXiang/TRELLIS
Nymbo
/
TRELLIS
like
4
Running
on
Zero
App
Files
Files
Community
d75b658
TRELLIS
/
trellis
/
pipelines
/
samplers
/
base.py
JeffreyXiang
Upload
db6a3b7
21 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