Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
JeffreyXiang
/
TRELLIS
like
1.34k
Running
on
Zero
App
Files
Files
Community
17
refs/pr/4
TRELLIS
/
trellis
/
pipelines
/
samplers
/
base.py
JeffreyXiang
Upload
db6a3b7
13 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