Comments (7)
This page may help to solve this issue. https://github.com/lugiavn/notes/blob/master/fashioniq_tirg.md
from fashion-iq.
I met the same problem. Could anybody figure this out?
from fashion-iq.
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.
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.
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.
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.
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)
- Large amount of image urls are broken HOT 2
- Hyper-parameter settings
- How can I download the dataset? HOT 1
- The image attribute features cannot be downloaded
- New dataset download link HOT 5
- attribute features HOT 1
- Collating captions produces zeros HOT 4
- Two links here cannot be accessible!!!, which terribly hindered my research work!!! HOT 2
- > The previous link for attributes was broken for some reason. So updated the link for attributes. HOT 2
- File readers
- resize images issues HOT 2
- about attribute predict HOT 5
- Some logo pictures in dataset HOT 9
- How to divide the data set into training set and test set
- How to solve the problem of broken link in fashioniq HOT 14
- Pretrained user models for relative captioning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fashion-iq.