Coder Social home page Coder Social logo

Comments (5)

pldeepesh avatar pldeepesh commented on May 22, 2024 5

@cfrancesco I have tried to use git lfs pull but it throws an errror,

batch response: This repository is over its data quota. Purchase more data packs to restore access. error: failed to fetch some objects from 'https://github.com/idealo/image-super-resolution.git/info/lfs'

from image-super-resolution.

cfrancesco avatar cfrancesco commented on May 22, 2024

Duplicate of #21

If you did use git lfs pull, please comment there.

from image-super-resolution.

joys8998 avatar joys8998 commented on May 22, 2024

@cfrancesco Sorry but i get the same error by trying to download weights with git lfs pull command. And i can't use the newest way to load weights (RRDN(weights='gans')) since i want to perform image resolution on a whole directory.

How can i solve?

from image-super-resolution.

cfrancesco avatar cfrancesco commented on May 22, 2024

I see. You're trying to use the predictor class. It is not maintained, it will probably be removed.

If this is your issue, then it's easy to script: model that way and then iterate through a given directory, something like

from ISR.models import RRDN
from pathlib import Path
import imageio

rrdn = RRDN(weights='gans')
dir_path = Path('/your/img/dir/path')
out_dir_path = Path('output/dir/')

for image in dir_path.iterdir(): 
   if image.endswith('.png'): # or whatever format you have
      image = imageio.imread( dir_path/ image )
      sr_img = rrdn.predict(np.array(image))
      out_image_path = out_dir_path / image
      imageio.imwrite(out_image_path, sr_img)
    

from image-super-resolution.

joys8998 avatar joys8998 commented on May 22, 2024

Yeps, but the amount of images is quite huge and it chashes if i use a for cycle ( also in colab) anyway thank you for your support :)

from image-super-resolution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.