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