Coder Social home page Coder Social logo

Broken URLs about fashion-iq HOT 7 OPEN

xiaoxiaoguo avatar xiaoxiaoguo commented on July 17, 2024
Broken URLs

from fashion-iq.

Comments (7)

yan9qu avatar yan9qu commented on July 17, 2024 3

This page may help to solve this issue. https://github.com/lugiavn/notes/blob/master/fashioniq_tirg.md

from fashion-iq.

pisnitz avatar pisnitz commented on July 17, 2024

I met the same problem. Could anybody figure this out?

from fashion-iq.

yeeeqichen avatar yeeeqichen commented on July 17, 2024

Hi

I finally solve this by manually remove the broken images from the split file.

You could find the broken images with following code:

from PIL import Image
import os

prefix = 'The Prefix To The Data File, You Need To Customize This'
with open('broken_img.txt', 'w') as f1:
    for file in os.listdir(prefix + 'dress/'):
        with open(prefix + 'dress/' + file, 'rb') as f:
            try:
                img = Image.open(f).convert('RGB')
            except OSError:
                print('broken', file)
                f1.write(file + '\n')

from fashion-iq.

pisnitz avatar pisnitz commented on July 17, 2024

Hi

I finally solve this by manually remove the broken images from the split file.

You could find the broken images with following code:

from PIL import Image
import os

prefix = 'The Prefix To The Data File, You Need To Customize This'
with open('broken_img.txt', 'w') as f1:
    for file in os.listdir(prefix + 'dress/'):
        with open(prefix + 'dress/' + file, 'rb') as f:
            try:
                img = Image.open(f).convert('RGB')
            except OSError:
                print('broken', file)
                f1.write(file + '\n')

Thanks a lot! But I got another question. If you mannully remove the broken images from the split file, how to match up the candidate and target in caption file? Removing the caption once the broken image appears in candidate list or target list?

from fashion-iq.

yan9qu avatar yan9qu commented on July 17, 2024

Hi

I finally solve this by manually remove the broken images from the split file.

You could find the broken images with following code:

from PIL import Image
import os

prefix = 'The Prefix To The Data File, You Need To Customize This'
with open('broken_img.txt', 'w') as f1:
    for file in os.listdir(prefix + 'dress/'):
        with open(prefix + 'dress/' + file, 'rb') as f:
            try:
                img = Image.open(f).convert('RGB')
            except OSError:
                print('broken', file)
                f1.write(file + '\n')

Thank you. And may I ask can you get all the images?

from fashion-iq.

yeeeqichen avatar yeeeqichen commented on July 17, 2024

Hi
I finally solve this by manually remove the broken images from the split file.
You could find the broken images with following code:

from PIL import Image
import os

prefix = 'The Prefix To The Data File, You Need To Customize This'
with open('broken_img.txt', 'w') as f1:
    for file in os.listdir(prefix + 'dress/'):
        with open(prefix + 'dress/' + file, 'rb') as f:
            try:
                img = Image.open(f).convert('RGB')
            except OSError:
                print('broken', file)
                f1.write(file + '\n')

Thanks a lot! But I got another question. If you mannully remove the broken images from the split file, how to match up the candidate and target in caption file? Removing the caption once the broken image appears in candidate list or target list?

Yep :)

from fashion-iq.

yeeeqichen avatar yeeeqichen commented on July 17, 2024

Hi
I finally solve this by manually remove the broken images from the split file.
You could find the broken images with following code:

from PIL import Image
import os

prefix = 'The Prefix To The Data File, You Need To Customize This'
with open('broken_img.txt', 'w') as f1:
    for file in os.listdir(prefix + 'dress/'):
        with open(prefix + 'dress/' + file, 'rb') as f:
            try:
                img = Image.open(f).convert('RGB')
            except OSError:
                print('broken', file)
                f1.write(file + '\n')

Thank you. And may I ask can you get all the images?

Sorry, I couldn't get all the images neither. I just remove the broken images from the dataset and run the code with the modified dataset, which might lead to different performance compared to the results reported in related paper.

from fashion-iq.

Related Issues (17)

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.