Image-to-Image
Diffusers
Safetensors
English
agriculture
world-model
plant-growth
developmental-reasoning
image-editing
rice
maize
research
Instructions to use ecnu-icalk/ArgoWM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ecnu-icalk/ArgoWM with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ecnu-icalk/ArgoWM", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download tests/test_evaluation_io.py from ecnu-icalk/ArgoWM: direct link, hf CLI and curl.
- Browser
- Download file 773 Bytes
-
https://huggingface.co/ecnu-icalk/ArgoWM/resolve/main/tests/test_evaluation_io.py
- Command line
-
hf download hf://ecnu-icalk/ArgoWM/tests/test_evaluation_io.py
-
curl -L -o test_evaluation_io.py https://huggingface.co/ecnu-icalk/ArgoWM/resolve/main/tests/test_evaluation_io.py
773 Bytes
| from __future__ import annotations | |
| import sys | |
| import unittest | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| sys.path.insert(0, str(ROOT / "src")) | |
| from wgsr_v9.evaluation_io import pair_key_for_dataset_row # noqa: E402 | |
| class EvaluationAlignmentTests(unittest.TestCase): | |
| def test_executor_request_id_aligns_to_dataset_pair_id(self) -> None: | |
| dataset_row = {"pair_id": "plant_a_2020-01-01_to_2020-01-08_side0"} | |
| executor_result = { | |
| "request_id": "plant_a_2020-01-01_to_2020-01-08_side0", | |
| "row_index": 12, | |
| } | |
| self.assertEqual( | |
| pair_key_for_dataset_row(dataset_row), | |
| pair_key_for_dataset_row(executor_result), | |
| ) | |
| if __name__ == "__main__": | |
| unittest.main() | |