mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-03-01 16:49:56 +00:00
Add ability to designate a dataset as i2v or t2v for models that support it
This commit is contained in:
@@ -301,3 +301,10 @@ class DataLoaderBatchDTO:
|
||||
del self.control_tensor
|
||||
for file_item in self.file_items:
|
||||
file_item.cleanup()
|
||||
|
||||
@property
|
||||
def dataset_config(self) -> 'DatasetConfig':
|
||||
if len(self.file_items) > 0:
|
||||
return self.file_items[0].dataset_config
|
||||
else:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user