Fixed some arg defaults
Browse files- futureworld_hf.py +4 -4
- test_hf.py +5 -0
futureworld_hf.py
CHANGED
|
@@ -59,10 +59,10 @@ class AutoregressiveFutureWorld(PreTrainedModel):
|
|
| 59 |
|
| 60 |
# modifed from text2world.py demo function
|
| 61 |
def forward(self, input_type,
|
| 62 |
-
batch_input_path,
|
| 63 |
-
input_image_or_video_path,
|
| 64 |
-
data_resolution,
|
| 65 |
-
num_input_frames):
|
| 66 |
input_videos = load_vision_input(
|
| 67 |
input_type=input_type,
|
| 68 |
batch_input_path=batch_input_path,
|
|
|
|
| 59 |
|
| 60 |
# modifed from text2world.py demo function
|
| 61 |
def forward(self, input_type,
|
| 62 |
+
batch_input_path = None,
|
| 63 |
+
input_image_or_video_path = None,
|
| 64 |
+
data_resolution = None,
|
| 65 |
+
num_input_frames = 9):
|
| 66 |
input_videos = load_vision_input(
|
| 67 |
input_type=input_type,
|
| 68 |
batch_input_path=batch_input_path,
|
test_hf.py
CHANGED
|
@@ -15,5 +15,10 @@ model = AutoModel.from_pretrained("EthanZyh/DiffusionText2WorldGeneration",
|
|
| 15 |
#model(prompt)
|
| 16 |
|
| 17 |
model = AutoModel.from_pretrained("sheldonl/AutoregressiveFutureWorld",
|
|
|
|
| 18 |
trust_remote_code = True)
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
#model(prompt)
|
| 16 |
|
| 17 |
model = AutoModel.from_pretrained("sheldonl/AutoregressiveFutureWorld",
|
| 18 |
+
ar_model_dir = "Cosmos-1.0-Autoregressive-4B",
|
| 19 |
trust_remote_code = True)
|
| 20 |
|
| 21 |
+
model(input_type = "video",
|
| 22 |
+
input_image_or_video_path = "../Cosmos/cosmos1/models/autoregressive/assets/v1p0/input.mp4",
|
| 23 |
+
)
|
| 24 |
+
|