You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import torch
from torchvision import transforms
from PIL import Image
import matplotlib.pyplot as plt
import numpy as np
from models.networks import ResnetGenerator, get_norm_layer
Adjust this to correctly import your model and its norm layer
from networks import ResnetGenerator, get_norm_layer
x = '/content/DeblurGAN/checkpoints/experiment_name/latest_net_G.pth'
y = '/content/drive/MyDrive/Food Image Datasets/North Indian/main_final/training/veg sandwich - Google Search/1.jpeg'
The text was updated successfully, but these errors were encountered:
THE SCRIPT I RAN
import torch
from torchvision import transforms
from PIL import Image
import matplotlib.pyplot as plt
import numpy as np
from models.networks import ResnetGenerator, get_norm_layer
Adjust this to correctly import your model and its norm layer
from networks import ResnetGenerator, get_norm_layer
def deblur_image(image_path, model):
img = Image.open(image_path).convert('RGB')
Load your model and deblur the image
model = load_pretrained_model(x, 3, 3, 64, 'instance', 9, False)
deblur_image(y, model)
x = '/content/DeblurGAN/checkpoints/experiment_name/latest_net_G.pth'
y = '/content/drive/MyDrive/Food Image Datasets/North Indian/main_final/training/veg sandwich - Google Search/1.jpeg'
The text was updated successfully, but these errors were encountered: