diff --git a/spaces/17TheWord/RealESRGAN/tests/test_utils.py b/spaces/17TheWord/RealESRGAN/tests/test_utils.py deleted file mode 100644 index 7919b74905495b4b6f4aa957a1f0b5d7a174c782..0000000000000000000000000000000000000000 --- a/spaces/17TheWord/RealESRGAN/tests/test_utils.py +++ /dev/null @@ -1,87 +0,0 @@ -import numpy as np -from basicsr.archs.rrdbnet_arch import RRDBNet - -from realesrgan.utils import RealESRGANer - - -def test_realesrganer(): - # initialize with default model - restorer = RealESRGANer( - scale=4, - model_path='experiments/pretrained_models/RealESRGAN_x4plus.pth', - model=None, - tile=10, - tile_pad=10, - pre_pad=2, - half=False) - assert isinstance(restorer.model, RRDBNet) - assert restorer.half is False - # initialize with user-defined model - model = RRDBNet(num_in_ch=3, num_out_ch=3, num_feat=64, num_block=6, num_grow_ch=32, scale=4) - restorer = RealESRGANer( - scale=4, - model_path='experiments/pretrained_models/RealESRGAN_x4plus_anime_6B.pth', - model=model, - tile=10, - tile_pad=10, - pre_pad=2, - half=True) - # test attribute - assert isinstance(restorer.model, RRDBNet) - assert restorer.half is True - - # ------------------ test pre_process ---------------- # - img = np.random.random((12, 12, 3)).astype(np.float32) - restorer.pre_process(img) - assert restorer.img.shape == (1, 3, 14, 14) - # with modcrop - restorer.scale = 1 - restorer.pre_process(img) - assert restorer.img.shape == (1, 3, 16, 16) - - # ------------------ test process ---------------- # - restorer.process() - assert restorer.output.shape == (1, 3, 64, 64) - - # ------------------ test post_process ---------------- # - restorer.mod_scale = 4 - output = restorer.post_process() - assert output.shape == (1, 3, 60, 60) - - # ------------------ test tile_process ---------------- # - restorer.scale = 4 - img = np.random.random((12, 12, 3)).astype(np.float32) - restorer.pre_process(img) - restorer.tile_process() - assert restorer.output.shape == (1, 3, 64, 64) - - # ------------------ test enhance ---------------- # - img = np.random.random((12, 12, 3)).astype(np.float32) - result = restorer.enhance(img, outscale=2) - assert result[0].shape == (24, 24, 3) - assert result[1] == 'RGB' - - # ------------------ test enhance with 16-bit image---------------- # - img = np.random.random((4, 4, 3)).astype(np.uint16) + 512 - result = restorer.enhance(img, outscale=2) - assert result[0].shape == (8, 8, 3) - assert result[1] == 'RGB' - - # ------------------ test enhance with gray image---------------- # - img = np.random.random((4, 4)).astype(np.float32) - result = restorer.enhance(img, outscale=2) - assert result[0].shape == (8, 8) - assert result[1] == 'L' - - # ------------------ test enhance with RGBA---------------- # - img = np.random.random((4, 4, 4)).astype(np.float32) - result = restorer.enhance(img, outscale=2) - assert result[0].shape == (8, 8, 4) - assert result[1] == 'RGBA' - - # ------------------ test enhance with RGBA, alpha_upsampler---------------- # - restorer.tile_size = 0 - img = np.random.random((4, 4, 4)).astype(np.float32) - result = restorer.enhance(img, outscale=2, alpha_upsampler=None) - assert result[0].shape == (8, 8, 4) - assert result[1] == 'RGBA' diff --git a/spaces/1acneusushi/gradio-2dmoleculeeditor/data/Cisco Packet Tracer Internet Cloud ((HOT)).md b/spaces/1acneusushi/gradio-2dmoleculeeditor/data/Cisco Packet Tracer Internet Cloud ((HOT)).md deleted file mode 100644 index 1fe6a2f17d1be6c0bd55b687b51299d11d3a417e..0000000000000000000000000000000000000000 --- a/spaces/1acneusushi/gradio-2dmoleculeeditor/data/Cisco Packet Tracer Internet Cloud ((HOT)).md +++ /dev/null @@ -1,42 +0,0 @@ -
-

How to Use Cisco Packet Tracer Internet Cloud for Network Simulation

-

Cisco Packet Tracer is a network simulation and visualization tool that allows you to create and test various network scenarios. One of the features of Cisco Packet Tracer is the Internet Cloud, which can be used to emulate the Internet or other networks that are not directly accessible from your local network. In this article, we will show you how to use Cisco Packet Tracer Internet Cloud for network simulation and what are the benefits and limitations of this feature.

-

cisco packet tracer internet cloud


Download ✑ ✑ ✑ https://byltly.com/2uKzFH



-

What is Cisco Packet Tracer Internet Cloud?

-

Cisco Packet Tracer Internet Cloud is a device that can be added to your network topology in Cisco Packet Tracer. It has two main functions: DSL and PT-Cloud.

- -

By using these functions, you can simulate various network scenarios that involve the Internet or other networks that are not directly connected to your local network. For example, you can create a VPN tunnel between two routers that are separated by the Internet Cloud, or you can test the connectivity and performance of your network devices over different network paths.

-

How to Use Cisco Packet Tracer Internet Cloud?

-

To use Cisco Packet Tracer Internet Cloud for network simulation, you need to follow these steps:

-
    -
  1. Open Cisco Packet Tracer and create a new network topology or open an existing one.
  2. -
  3. Drag and drop the Internet Cloud device from the End Devices section to your workspace.
  4. -
  5. Connect your network devices to the Internet Cloud device using copper straight-through cables or fiber optic cables. You can use any of the eight ports on the Internet Cloud device.
  6. -
  7. Double-click on the Internet Cloud device to open its configuration window.
  8. -
  9. Select the DSL tab and configure the DSL settings for each port that is connected to a DSL modem. You can specify the username, password, encapsulation type, and service name for each port. You can also enable or disable NAT on each port.
  10. -
  11. Select the PT-Cloud tab and configure the custom routes for each network segment that is connected to the Internet Cloud. You can specify the source and destination IP addresses and subnet masks for each route. You can also enable or disable ICMP on each route.
  12. -
  13. Click OK to save your configuration and close the window.
  14. -
  15. Test your network simulation by using ping, traceroute, or other commands on your network devices. You should be able to communicate with other devices that are connected to the Internet Cloud according to your configuration.
  16. -
-

What are the Benefits and Limitations of Cisco Packet Tracer Internet Cloud?

-

Cisco Packet Tracer Internet Cloud has some benefits and limitations that you should be aware of before using it for network simulation. Here are some of them:

-

-