mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	Update notebooks for 0.7.2
Summary: Expect pytorch 1.13 Reviewed By: davidsonic Differential Revision: D42072731 fbshipit-source-id: 13ba4e7de18060dc4e5c0e10f850f17a88750fc9
This commit is contained in:
		
							parent
							
								
									3bbe26124a
								
							
						
					
					
						commit
						6c053a6cea
					
				@ -89,7 +89,7 @@
 | 
			
		||||
    "except ModuleNotFoundError:\n",
 | 
			
		||||
    "    need_pytorch3d=True\n",
 | 
			
		||||
    "if need_pytorch3d:\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.12.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.13.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "        # We try to install PyTorch3D via a released wheel.\n",
 | 
			
		||||
    "        pyt_version_str=torch.__version__.split(\"+\")[0].replace(\".\", \"\")\n",
 | 
			
		||||
    "        version_str=\"\".join([\n",
 | 
			
		||||
 | 
			
		||||
@ -76,7 +76,7 @@
 | 
			
		||||
    "except ModuleNotFoundError:\n",
 | 
			
		||||
    "    need_pytorch3d=True\n",
 | 
			
		||||
    "if need_pytorch3d:\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.12.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.13.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "        # We try to install PyTorch3D via a released wheel.\n",
 | 
			
		||||
    "        pyt_version_str=torch.__version__.split(\"+\")[0].replace(\".\", \"\")\n",
 | 
			
		||||
    "        version_str=\"\".join([\n",
 | 
			
		||||
 | 
			
		||||
@ -51,7 +51,7 @@
 | 
			
		||||
    "except ModuleNotFoundError:\n",
 | 
			
		||||
    "    need_pytorch3d=True\n",
 | 
			
		||||
    "if need_pytorch3d:\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.12.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.13.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "        # We try to install PyTorch3D via a released wheel.\n",
 | 
			
		||||
    "        pyt_version_str=torch.__version__.split(\"+\")[0].replace(\".\", \"\")\n",
 | 
			
		||||
    "        version_str=\"\".join([\n",
 | 
			
		||||
 | 
			
		||||
@ -90,7 +90,7 @@
 | 
			
		||||
    "except ModuleNotFoundError:\n",
 | 
			
		||||
    "    need_pytorch3d=True\n",
 | 
			
		||||
    "if need_pytorch3d:\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.12.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.13.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "        # We try to install PyTorch3D via a released wheel.\n",
 | 
			
		||||
    "        pyt_version_str=torch.__version__.split(\"+\")[0].replace(\".\", \"\")\n",
 | 
			
		||||
    "        version_str=\"\".join([\n",
 | 
			
		||||
 | 
			
		||||
@ -56,7 +56,7 @@
 | 
			
		||||
    "except ModuleNotFoundError:\n",
 | 
			
		||||
    "    need_pytorch3d=True\n",
 | 
			
		||||
    "if need_pytorch3d:\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.12.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.13.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "        # We try to install PyTorch3D via a released wheel.\n",
 | 
			
		||||
    "        pyt_version_str=torch.__version__.split(\"+\")[0].replace(\".\", \"\")\n",
 | 
			
		||||
    "        version_str=\"\".join([\n",
 | 
			
		||||
 | 
			
		||||
@ -68,7 +68,7 @@
 | 
			
		||||
    "except ModuleNotFoundError:\n",
 | 
			
		||||
    "    need_pytorch3d=True\n",
 | 
			
		||||
    "if need_pytorch3d:\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.12.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.13.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "        # We try to install PyTorch3D via a released wheel.\n",
 | 
			
		||||
    "        pyt_version_str=torch.__version__.split(\"+\")[0].replace(\".\", \"\")\n",
 | 
			
		||||
    "        version_str=\"\".join([\n",
 | 
			
		||||
 | 
			
		||||
@ -47,7 +47,7 @@
 | 
			
		||||
    "except ModuleNotFoundError:\n",
 | 
			
		||||
    "    need_pytorch3d=True\n",
 | 
			
		||||
    "if need_pytorch3d:\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.12.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.13.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "        # We try to install PyTorch3D via a released wheel.\n",
 | 
			
		||||
    "        pyt_version_str=torch.__version__.split(\"+\")[0].replace(\".\", \"\")\n",
 | 
			
		||||
    "        version_str=\"\".join([\n",
 | 
			
		||||
 | 
			
		||||
@ -78,7 +78,7 @@
 | 
			
		||||
        "except ModuleNotFoundError:\n",
 | 
			
		||||
        "    need_pytorch3d=True\n",
 | 
			
		||||
        "if need_pytorch3d:\n",
 | 
			
		||||
        "    if torch.__version__.startswith(\"1.12.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
        "    if torch.__version__.startswith(\"1.13.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
        "        # We try to install PyTorch3D via a released wheel.\n",
 | 
			
		||||
        "        pyt_version_str=torch.__version__.split(\"+\")[0].replace(\".\", \"\")\n",
 | 
			
		||||
        "        version_str=\"\".join([\n",
 | 
			
		||||
 | 
			
		||||
@ -72,7 +72,7 @@
 | 
			
		||||
        "except ModuleNotFoundError:\n",
 | 
			
		||||
        "    need_pytorch3d=True\n",
 | 
			
		||||
        "if need_pytorch3d:\n",
 | 
			
		||||
        "    if torch.__version__.startswith(\"1.12.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
        "    if torch.__version__.startswith(\"1.13.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
        "        # We try to install PyTorch3D via a released wheel.\n",
 | 
			
		||||
        "        pyt_version_str=torch.__version__.split(\"+\")[0].replace(\".\", \"\")\n",
 | 
			
		||||
        "        version_str=\"\".join([\n",
 | 
			
		||||
 | 
			
		||||
@ -50,7 +50,7 @@
 | 
			
		||||
    "except ModuleNotFoundError:\n",
 | 
			
		||||
    "    need_pytorch3d=True\n",
 | 
			
		||||
    "if need_pytorch3d:\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.12.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.13.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "        # We try to install PyTorch3D via a released wheel.\n",
 | 
			
		||||
    "        pyt_version_str=torch.__version__.split(\"+\")[0].replace(\".\", \"\")\n",
 | 
			
		||||
    "        version_str=\"\".join([\n",
 | 
			
		||||
 | 
			
		||||
@ -57,7 +57,7 @@
 | 
			
		||||
    "except ModuleNotFoundError:\n",
 | 
			
		||||
    "    need_pytorch3d=True\n",
 | 
			
		||||
    "if need_pytorch3d:\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.12.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.13.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "        # We try to install PyTorch3D via a released wheel.\n",
 | 
			
		||||
    "        pyt_version_str=torch.__version__.split(\"+\")[0].replace(\".\", \"\")\n",
 | 
			
		||||
    "        version_str=\"\".join([\n",
 | 
			
		||||
 | 
			
		||||
@ -73,7 +73,7 @@
 | 
			
		||||
    "except ModuleNotFoundError:\n",
 | 
			
		||||
    "    need_pytorch3d=True\n",
 | 
			
		||||
    "if need_pytorch3d:\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.12.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "    if torch.__version__.startswith(\"1.13.\") and sys.platform.startswith(\"linux\"):\n",
 | 
			
		||||
    "        # We try to install PyTorch3D via a released wheel.\n",
 | 
			
		||||
    "        pyt_version_str=torch.__version__.split(\"+\")[0].replace(\".\", \"\")\n",
 | 
			
		||||
    "        version_str=\"\".join([\n",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user