Giter VIP home page Giter VIP logo

Comments (11)

ZYJ-JMF avatar ZYJ-JMF commented on August 25, 2024 1

Thanks a lot !

from tunit.

FriedRonaldo avatar FriedRonaldo commented on August 25, 2024

Hi, AFHQ-CAT dataset does not have the domain lables, therefore, it can not conduct the semi-supervised learning.
I am so sorry for the inconvenience. It should be changed into "python main.py --gpu 0 --dataset afhq_cat --output_k 10 --data_path '../data' --p_semi 0.0"

I will change ReadMe. Thank you for letting me know that!

from tunit.

ZYJ-JMF avatar ZYJ-JMF commented on August 25, 2024

Thanks for your answer.
I saw you used the animal faces dataset and FOOD-101 dataset.
I can find the name of the class name of Animal Faces in code,but I can not find the FOOD-101 class name
could you please provide the ten classes' names that used for FOOD-101 dataset?

from tunit.

FriedRonaldo avatar FriedRonaldo commented on August 25, 2024

This source code is under the refactoring, so I provide the class names directly:
baby_back_ribs
beef_carpaccio
beignets
bibimbap
caesar_salad
clam_chowder
dumplings
edamame
spaghetti_bolognese
strawberry_shortcake

These are the file of the used classes in Food-101.


I copy and paste the folders and use [i for i in range(10)].
Then, give the directory of Food-10.

from tunit.

ZYJ-JMF avatar ZYJ-JMF commented on August 25, 2024

Hi,could you share the set about the Food-10 dataset?
Such as in your validation.py L52-61,you set this:

Parse images for average reference vector

x_each_cls = []
if args.dataset == 'animal_faces':
    num_tmp_val = -50
elif args.dataset == 'ffhq':
    num_tmp_val = -7000
elif args.dataset == 'lsun_car':
    num_tmp_val = -10000
else:
    num_tmp_val = 0

if I want to use food-10 to train,what should I set?
Thanks

from tunit.

FriedRonaldo avatar FriedRonaldo commented on August 25, 2024

The Food-10 dataset is basically the same as 'animal_faces' dataset. Therefore, you should change the conditions containing 'animal_faces' into a condition having 'food-10'.

For the above example, you should change to

if args.dataset in ['animal_faces', 'food-10'] 

'food-10' might be changed as you set.

from tunit.

ZYJ-JMF avatar ZYJ-JMF commented on August 25, 2024

ok~ got it~Thanks

from tunit.

FriedRonaldo avatar FriedRonaldo commented on August 25, 2024

If it is ok, I will upload the source code without refactoring but simply applied "food-10"

from tunit.

ZYJ-JMF avatar ZYJ-JMF commented on August 25, 2024

oh That's cool.
I will glad to see that~
Thanks again~

from tunit.

FriedRonaldo avatar FriedRonaldo commented on August 25, 2024

Please check "food_added" branch. I assume that you separated a folder only for food-10.

If you have any issues, feel free to tell me.

from tunit.

ZYJ-JMF avatar ZYJ-JMF commented on August 25, 2024

I got it~
Thank you very much~

from tunit.

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.