Skip to content

Open-Sora: Democratizing Efficient Video Production for All

Python

fixed image size in sampler (#15)

Frank Leea9e8220c7cfc
diff --git a/opensora/datasets/sampler.py b/opensora/datasets/sampler.py
index a82869e..7456193 100644
--- a/opensora/datasets/sampler.py
+++ b/opensora/datasets/sampler.py
@@ -93,7 +93,7 @@ class DistributedVariableVideoSampler(DistributedSampler):
continue
self.last_bucket_id = k
- real_t, real_h, real_w = self.bucket.get_thw(bucket_id)
+ real_t, real_h, real_w = self.bucket.get_thw(k)
for sample_idx in v:
self.last_bucket_comsumed_samples += self.num_replicas